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
ffc7e0bb
Commit
ffc7e0bb
authored
Apr 17, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-892: Retrieve peer certificates from remote sessions.
parent
823252d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
RemoteSession.java
...g/jivesoftware/openfire/plugin/session/RemoteSession.java
+6
-0
RemoteSessionTask.java
...vesoftware/openfire/plugin/session/RemoteSessionTask.java
+4
-0
No files found.
src/plugins/hazelcast/src/java/org/jivesoftware/openfire/plugin/session/RemoteSession.java
View file @
ffc7e0bb
...
...
@@ -20,6 +20,7 @@
package
org
.
jivesoftware
.
openfire
.
plugin
.
session
;
import
java.net.UnknownHostException
;
import
java.security.cert.Certificate
;
import
java.util.Date
;
import
org.jivesoftware.openfire.SessionManager
;
...
...
@@ -120,6 +121,11 @@ public abstract class RemoteSession implements Session {
return
(
String
)
doSynchronousClusterTask
(
task
);
}
public
Certificate
[]
getPeerCertificates
()
{
ClusterTask
task
=
getRemoteSessionTask
(
RemoteSessionTask
.
Operation
.
getPeerCertificates
);
return
(
Certificate
[])
doSynchronousClusterTask
(
task
);
}
public
void
process
(
Packet
packet
)
{
doClusterTask
(
getProcessPacketTask
(
packet
));
}
...
...
src/plugins/hazelcast/src/java/org/jivesoftware/openfire/plugin/session/RemoteSessionTask.java
View file @
ffc7e0bb
...
...
@@ -76,6 +76,9 @@ public abstract class RemoteSessionTask implements ClusterTask {
else
if
(
operation
==
Operation
.
getCipherSuiteName
)
{
result
=
getSession
().
getCipherSuiteName
();
}
else
if
(
operation
==
Operation
.
getPeerCertificates
)
{
result
=
getSession
().
getPeerCertificates
();
}
else
if
(
operation
==
Operation
.
close
)
{
// Run in another thread so we avoid blocking calls (in hazelcast)
final
Session
session
=
getSession
();
...
...
@@ -143,6 +146,7 @@ public abstract class RemoteSessionTask implements ClusterTask {
getNumClientPackets
,
getNumServerPackets
,
getCipherSuiteName
,
getPeerCertificates
,
close
,
isClosed
,
isSecure
,
...
...
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