public class SSLManager extends Object
| Modifier and Type | Field and Description |
|---|---|
private SSLSocketFactory |
sslSocketFactory |
private X509TrustManager |
trustManager |
| Constructor and Description |
|---|
SSLManager(InputStream pkcs12InputStream,
String pin)
Instantiates a new Ssl manager.
|
SSLManager(KeyStore loadedKeyStore)
Instantiates a new Ssl manager.
|
SSLManager(X509TrustManager trustManager)
Instantiates a new Ssl manager.
|
SSLManager(X509TrustManager trustManager,
SSLSocketFactory sslSocketFactory)
Instantiates a new Ssl manager.
|
| Modifier and Type | Method and Description |
|---|---|
SSLSocketFactory |
getSslSocketFactory() |
X509TrustManager |
getTrustManager() |
private final X509TrustManager trustManager
private final SSLSocketFactory sslSocketFactory
public SSLManager(InputStream pkcs12InputStream, String pin) throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException, CertificateException, IOException
pkcs12InputStream - the pkcs 12 input streampin - the pinNoSuchAlgorithmException - the no such algorithm exceptionKeyStoreException - the key store exceptionKeyManagementException - the key management exceptionCertificateException - the certificate exceptionIOException - the io exceptionpublic SSLManager(KeyStore loadedKeyStore) throws NoSuchAlgorithmException, KeyStoreException, KeyManagementException
loadedKeyStore - the loadedKey storeNoSuchAlgorithmException - the no such algorithm exceptionKeyStoreException - the key store exceptionKeyManagementException - the key management exceptionpublic SSLManager(X509TrustManager trustManager) throws NoSuchAlgorithmException, KeyManagementException
trustManager - the trust managerNoSuchAlgorithmException - the no such algorithm exceptionKeyManagementException - the key management exceptionpublic SSLManager(X509TrustManager trustManager, SSLSocketFactory sslSocketFactory)
trustManager - the trust managersslSocketFactory - the ssl socket factorypublic X509TrustManager getTrustManager()
public SSLSocketFactory getSslSocketFactory()
Copyright © 2024. All rights reserved.