public class CustomX509TrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager
Constructor and Description |
---|
CustomX509TrustManager(java.security.cert.X509Certificate userCertificate) |
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] chain,
java.lang.String authType) |
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
public CustomX509TrustManager(java.security.cert.X509Certificate userCertificate) throws java.security.cert.CertificateException, java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.io.IOException
java.security.cert.CertificateException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.io.IOException
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
java.security.cert.CertificateException
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
java.security.cert.CertificateException
public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager