Class SimpleX509TrustManager
- java.lang.Object
-
- com.marklogic.client.ext.modulesloader.ssl.SimpleX509TrustManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager,javax.net.ssl.X509TrustManager
public class SimpleX509TrustManager extends java.lang.Object implements javax.net.ssl.X509TrustManager"Simple" in that it doesn't do anything. Useful for development, but you should consider something more robust for a production environment, though if you're only using this for loading modules, it may suffice.
-
-
Constructor Summary
Constructors Constructor Description SimpleX509TrustManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)voidcheckServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)java.security.cert.X509Certificate[]getAcceptedIssuers()static javax.net.ssl.SSLContextnewSSLContext()Factory method for creating a simple SSLContext that uses this class as its TrustManager.static javax.net.ssl.SSLContextnewSSLContext(java.lang.String protocol)
-
-
-
Method Detail
-
newSSLContext
public static javax.net.ssl.SSLContext newSSLContext()
Factory method for creating a simple SSLContext that uses this class as its TrustManager.- Returns:
- a default trust-everything SSLContext
-
newSSLContext
public static javax.net.ssl.SSLContext newSSLContext(java.lang.String protocol)
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)- Specified by:
checkClientTrustedin interfacejavax.net.ssl.X509TrustManager
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)- Specified by:
checkServerTrustedin interfacejavax.net.ssl.X509TrustManager
-
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfacejavax.net.ssl.X509TrustManager
-
-