Package com.sun.messaging.jmq.management
Class DefaultTrustManager
- java.lang.Object
-
- com.sun.messaging.jmq.management.DefaultTrustManager
-
- All Implemented Interfaces:
TrustManager
,X509TrustManager
public class DefaultTrustManager extends Object implements 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.
-
-
Constructor Summary
Constructors Constructor Description DefaultTrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(X509Certificate[] chain, String authType)
void
checkServerTrusted(X509Certificate[] chain, String authType)
X509Certificate[]
getAcceptedIssuers()
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType)
- Specified by:
checkClientTrusted
in interfaceX509TrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType)
- Specified by:
checkServerTrusted
in interfaceX509TrustManager
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-
-