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
ca2d61ef
Commit
ca2d61ef
authored
Mar 27, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-892: The admin panel should give a visual clue for mutual authentication usage.
parent
20be3766
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
9 deletions
+24
-9
LocalSession.java
src/java/org/jivesoftware/openfire/session/LocalSession.java
+5
-0
Session.java
src/java/org/jivesoftware/openfire/session/Session.java
+8
-0
lock_both.gif
src/web/images/lock_both.gif
+0
-0
session-row.jspf
src/web/session-row.jspf
+11
-9
No files found.
src/java/org/jivesoftware/openfire/session/LocalSession.java
View file @
ca2d61ef
...
...
@@ -17,6 +17,7 @@
package
org
.
jivesoftware
.
openfire
.
session
;
import
java.net.UnknownHostException
;
import
java.security.cert.Certificate
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -354,6 +355,10 @@ public abstract class LocalSession implements Session {
return
conn
.
isSecure
();
}
public
Certificate
[]
getPeerCertificates
()
{
return
conn
.
getPeerCertificates
();
}
public
boolean
isClosed
()
{
return
conn
.
isClosed
();
}
...
...
src/java/org/jivesoftware/openfire/session/Session.java
View file @
ca2d61ef
...
...
@@ -26,6 +26,7 @@ import org.xmpp.packet.JID;
import
org.xmpp.packet.Packet
;
import
java.net.UnknownHostException
;
import
java.security.cert.Certificate
;
import
java.util.Date
;
/**
...
...
@@ -135,6 +136,13 @@ public interface Session extends RoutableChannelHandler {
*/
public
boolean
isSecure
();
/**
* Returns the peer certificates associated with this session, if any.
*
* @return certificates, possibly empty or null.
*/
public
Certificate
[]
getPeerCertificates
();
/**
* Returns the IP address string in textual presentation.
*
...
...
src/web/images/lock_both.gif
0 → 100644
View file @
ca2d61ef
577 Bytes
src/web/session-row.jspf
View file @
ca2d61ef
...
...
@@ -68,15 +68,17 @@
<% } %>
</td>
<% if (sess.isSecure()) { %>
<td width="1%">
<img src="images/lock.gif" width="16" height="16" border="0"
title="<fmt:message key='session.row.cliked_ssl' />" alt="<fmt:message key='session.row.cliked_ssl' />">
</td>
<% } else { %>
<td width="1%"><img src="images/blank.gif" width="1" height="1" alt=""></td>
<% } %>
<td width="1%">
<% if (sess.isSecure()) {
if (sess.getPeerCertificates() != null && sess.getPeerCertificates().length > 0) { %>
<img src="images/lock_both.gif" width="16" height="16" border="0" title="<fmt:message key='session.row.cliked_ssl' /> (mutual authentication)" alt="<fmt:message key='session.row.cliked_ssl' /> (mutual authentication)">
<% } else { %>
<img src="images/lock.gif" width="16" height="16" border="0" title="<fmt:message key='session.row.cliked_ssl' />" alt="<fmt:message key='session.row.cliked_ssl' />">
<% }
} else { %>
<img src="images/blank.gif" width="1" height="1" alt="">
<% } %>
</td>
<% Presence.Show _show = sess.getPresence().getShow();
String _stat = sess.getPresence().getStatus();
if (!sess.getPresence().isAvailable()) {
...
...
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