com.sun.messaging.jmq.management
Class DefaultTrustManager
java.lang.Object
com.sun.messaging.jmq.management.DefaultTrustManager
- All Implemented Interfaces:
- javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager
public class DefaultTrustManager
- extends java.lang.Object
- implements javax.net.ssl.X509TrustManager
The default trust manager.
TBD: Need to describe *when* this class is used i.e. what JMX configuration
properties trigger it's use.
If this class is used, the client does not require to install/configure
server certificates because all server certs are accepted.
This is useful for intra-net applications where servers are inside
firewall and are treated as trusted.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTrustManager
public DefaultTrustManager()
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
- Specified by:
checkClientTrusted in interface javax.net.ssl.X509TrustManager
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType)
- Specified by:
checkServerTrusted in interface javax.net.ssl.X509TrustManager
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager
Copyright © 2012 GlassFish Community. All Rights Reserved.