Class SelfSignedX509TrustManager
java.lang.Object
org.jumpmind.symmetric.transport.http.SelfSignedX509TrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
A X509TrustManager that accepts self-signed certificates.
This trust manager SHOULD NOT be used for production systems due to security reasons unless you are aware of security implications of accepting self-signed certificates.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSelfSignedX509TrustManager
(KeyStore keystore) Constructor for SelfSignedX509TrustManager. -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] certificates, String authType) void
checkServerTrusted
(X509Certificate[] certificates, String authType)
-
Field Details
-
log
protected org.slf4j.Logger logLog object for this class.
-
-
Constructor Details
-
SelfSignedX509TrustManager
public SelfSignedX509TrustManager(KeyStore keystore) throws NoSuchAlgorithmException, KeyStoreException Constructor for SelfSignedX509TrustManager.
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] certificates, String authType) throws CertificateException - Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
- See Also:
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException - Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
- See Also:
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
- See Also:
-