public class SSLUtils extends Object
| Constructor and Description |
|---|
SSLUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.conn.ssl.SSLSocketFactory |
getFactory(Security security) |
static X509KeyManager |
getKeyManager(KeyStore keyStore,
char[] keyStorePassword) |
static org.apache.http.conn.ssl.SSLSocketFactory |
getMergedSocketFactory(Security securityOne,
Security securityTwo) |
static X509TrustManager |
getMultiTrustManager(X509TrustManager... managers) |
static X509TrustManager |
getTrustManager(KeyStore trustStore) |
public static X509TrustManager getTrustManager(KeyStore trustStore) throws NoSuchAlgorithmException, KeyStoreException
public static X509KeyManager getKeyManager(KeyStore keyStore, char[] keyStorePassword) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
public static X509TrustManager getMultiTrustManager(X509TrustManager... managers)
public static org.apache.http.conn.ssl.SSLSocketFactory getMergedSocketFactory(Security securityOne, Security securityTwo) throws GeneralSecurityException
GeneralSecurityExceptionpublic static org.apache.http.conn.ssl.SSLSocketFactory getFactory(Security security) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2012-2018. All Rights Reserved.