public class TrustManagers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.security.KeyStore |
buildKeyStoreFromTrustedCertificates(java.util.List<java.security.cert.X509Certificate> certificates) |
static javax.net.ssl.X509TrustManager[] |
newDefaultJavaTrustManager() |
static javax.net.ssl.SSLContext |
newSSLContext(javax.net.ssl.KeyManager[] keyManager,
javax.net.ssl.X509TrustManager[] trustManager) |
static javax.net.ssl.SSLSocketFactory |
newSSLSocketFactory(javax.net.ssl.KeyManager[] keyManager,
javax.net.ssl.X509TrustManager[] trustManager,
java.lang.String verifyHostname) |
static javax.net.ssl.X509TrustManager[] |
newTrustManager(java.util.List<java.security.cert.X509Certificate> trustedCertificates) |
static java.security.KeyStore |
readDefaultJavaKeyStore() |
static java.util.List<java.security.cert.X509Certificate> |
readDefaultJavaTrustedCertificates() |
static java.util.List<java.security.cert.X509Certificate> |
readPemEncodedX509Certificates(java.io.Reader reader) |
public static java.security.KeyStore readDefaultJavaKeyStore() throws java.io.IOException, java.security.KeyStoreException, java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
java.security.cert.CertificateException
public static java.util.List<java.security.cert.X509Certificate> readDefaultJavaTrustedCertificates() throws java.io.IOException, java.security.cert.CertificateException, java.security.KeyStoreException, java.security.InvalidAlgorithmParameterException
java.io.IOException
java.security.cert.CertificateException
java.security.KeyStoreException
java.security.InvalidAlgorithmParameterException
public static java.util.List<java.security.cert.X509Certificate> readPemEncodedX509Certificates(java.io.Reader reader) throws java.io.IOException, java.security.cert.CertificateException
java.io.IOException
java.security.cert.CertificateException
public static java.security.KeyStore buildKeyStoreFromTrustedCertificates(java.util.List<java.security.cert.X509Certificate> certificates) throws java.security.KeyStoreException
java.security.KeyStoreException
public static javax.net.ssl.X509TrustManager[] newTrustManager(java.util.List<java.security.cert.X509Certificate> trustedCertificates) throws java.security.KeyStoreException
java.security.KeyStoreException
public static javax.net.ssl.X509TrustManager[] newDefaultJavaTrustManager() throws java.io.IOException, java.security.cert.CertificateException, java.security.KeyStoreException, java.security.InvalidAlgorithmParameterException
java.io.IOException
java.security.cert.CertificateException
java.security.KeyStoreException
java.security.InvalidAlgorithmParameterException
public static javax.net.ssl.SSLContext newSSLContext(javax.net.ssl.KeyManager[] keyManager, javax.net.ssl.X509TrustManager[] trustManager) throws java.security.KeyManagementException
java.security.KeyManagementException
public static javax.net.ssl.SSLSocketFactory newSSLSocketFactory(javax.net.ssl.KeyManager[] keyManager, javax.net.ssl.X509TrustManager[] trustManager, java.lang.String verifyHostname) throws java.security.KeyManagementException
java.security.KeyManagementException