org.jivesoftware.openfire.net
Class SSLJiveTrustManager
java.lang.Object
org.jivesoftware.openfire.net.SSLJiveTrustManager
- All Implemented Interfaces:
- TrustManager, X509TrustManager
public class SSLJiveTrustManager
- extends Object
- implements X509TrustManager
Trust manager which accepts certificates without any validation
except date validation.
A skeleton placeholder for developers wishing to implement their own custom
trust manager. In future revisions we may expand the skeleton code if customers
request assistance in creating custom trust managers.
You only need a trust manager if your server will require clients
to authenticated with the server (typically only the server authenticates
with the client).
- Author:
- Iain Shigeoka
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLJiveTrustManager
public SSLJiveTrustManager()
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain,
String authType)
- Specified by:
checkClientTrusted
in interface X509TrustManager
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain,
String authType)
- Specified by:
checkServerTrusted
in interface X509TrustManager
isClientTrusted
public boolean isClientTrusted(X509Certificate[] x509Certificates)
isServerTrusted
public boolean isServerTrusted(X509Certificate[] x509Certificates)
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2003-2008 Jive Software.