Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
3bc97e95
Commit
3bc97e95
authored
Jul 28, 2015
by
Victor Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed getClientIdentities and getServerIdentities to use the first non-empty mapping results
parent
b90fd62c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
CertificateManager.java
src/java/org/jivesoftware/util/CertificateManager.java
+8
-2
No files found.
src/java/org/jivesoftware/util/CertificateManager.java
View file @
3bc97e95
...
...
@@ -397,7 +397,10 @@ public class CertificateManager {
for
(
CertificateIdentityMapping
mapping
:
clientCertMapping
)
{
List
<
String
>
identities
=
mapping
.
mapIdentity
(
x509Certificate
);
Log
.
debug
(
"CertificateManager: "
+
mapping
.
name
()
+
" returned "
+
identities
.
toString
());
names
.
addAll
(
identities
);
if
(!
identities
.
isEmpty
())
{
names
.
addAll
(
identities
);
break
;
}
}
return
names
;
...
...
@@ -420,7 +423,10 @@ public class CertificateManager {
for
(
CertificateIdentityMapping
mapping
:
serverCertMapping
)
{
List
<
String
>
identities
=
mapping
.
mapIdentity
(
x509Certificate
);
Log
.
debug
(
"CertificateManager: "
+
mapping
.
name
()
+
" returned "
+
identities
.
toString
());
names
.
addAll
(
identities
);
if
(!
identities
.
isEmpty
())
{
names
.
addAll
(
identities
);
break
;
}
}
return
names
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment