org.hyperic.util.security
Class BogusTrustManager
java.lang.Object
org.hyperic.util.security.BogusTrustManager
- All Implemented Interfaces:
- javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager
public class BogusTrustManager
- extends java.lang.Object
- implements javax.net.ssl.X509TrustManager
The bogus trust manager allows for non-validated remote
SSL entities. In the case of people using self-signed
certificates, this allows a connection, since it is unlikely
that they are using a CA, or that the CA will be in the client's
cacerts of jssecerts files.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BogusTrustManager
public BogusTrustManager()
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
isClientTrusted
public boolean isClientTrusted(java.security.cert.X509Certificate[] chain)
isServerTrusted
public boolean isServerTrusted(java.security.cert.X509Certificate[] chain)
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.