public final class DNIeSSLSocketFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SSL_PROTOCOL |
Modifier and Type | Method and Description |
---|---|
static javax.net.ssl.SSLSocketFactory |
getInstance(java.security.KeyStore clientKeyStore,
java.security.KeyStore trustCertStore,
KeyManagerPolicy keyManagerPolicy,
android.app.Activity activity)
Get SSL Socket factory.
|
static javax.net.ssl.SSLSocketFactory |
getInstance(java.security.KeyStore clientKeyStore,
java.security.KeyStore trustCertStore,
KeyManagerPolicy keyManagerPolicy,
java.security.Provider jsseProvider,
android.app.Activity activity)
Get SSL Socket factory.
|
static javax.net.ssl.SSLSocketFactory |
getInstance(java.security.KeyStore clientKeyStore,
java.security.KeyStore trustCertStore,
KeyManagerPolicy keyManagerPolicy,
java.lang.String protocol,
android.app.Activity activity)
Get SSL Socket factory.
|
static javax.net.ssl.SSLSocketFactory |
getInstance(java.security.KeyStore clientKeyStore,
java.security.KeyStore trustCertStore,
KeyManagerPolicy keyManagerPolicy,
java.lang.String protocol,
java.security.Provider jsseProvider,
android.app.Activity activity)
Get SSL Socket factory.
|
public static final java.lang.String DEFAULT_SSL_PROTOCOL
public static javax.net.ssl.SSLSocketFactory getInstance(java.security.KeyStore clientKeyStore, java.security.KeyStore trustCertStore, KeyManagerPolicy keyManagerPolicy, android.app.Activity activity) throws java.security.GeneralSecurityException
clientKeyStore
- container with the client certificates for authentication.trustCertStore
- container with the trusted CA (Certificate Authority) certificate keystore for server authentication.keyManagerPolicy
- policies for retrieving the client certificate for authentication.activity
- application Activity.java.security.GeneralSecurityException
java.lang.IllegalArgumentException
- if context
is null
.public static javax.net.ssl.SSLSocketFactory getInstance(java.security.KeyStore clientKeyStore, java.security.KeyStore trustCertStore, KeyManagerPolicy keyManagerPolicy, java.lang.String protocol, android.app.Activity activity) throws java.security.GeneralSecurityException
clientKeyStore
- container with the client certificates for authentication.trustCertStore
- container with the trusted CA (Certificate Authority) certificate keystore for server authentication.keyManagerPolicy
- policies for retrieving the client certificate for authentication.protocol
- SSL/TLS protocol ("SSLv3", "TLSv1", ""TLSv1.1", "TLSv2", etc.).activity
- application activity.java.lang.IllegalArgumentException
- if protocol
or context
is null
.java.security.GeneralSecurityException
public static javax.net.ssl.SSLSocketFactory getInstance(java.security.KeyStore clientKeyStore, java.security.KeyStore trustCertStore, KeyManagerPolicy keyManagerPolicy, java.security.Provider jsseProvider, android.app.Activity activity) throws java.security.GeneralSecurityException
clientKeyStore
- container with the client certificates for authentication.trustCertStore
- container with the trusted CA (Certificate Authority) certificate keystore for server authentication.keyManagerPolicy
- policies for retrieving the client certificate for authentication.jsseProvider
- JSSE provider to use instead of default (Conscrypt, Bouncy Castle, etc.)activity
- application activity.java.lang.IllegalArgumentException
- if jsseProvider
or context
is null
.java.security.GeneralSecurityException
public static javax.net.ssl.SSLSocketFactory getInstance(java.security.KeyStore clientKeyStore, java.security.KeyStore trustCertStore, KeyManagerPolicy keyManagerPolicy, java.lang.String protocol, java.security.Provider jsseProvider, android.app.Activity activity) throws java.security.GeneralSecurityException
clientKeyStore
- container with the client certificates for authentication.trustCertStore
- container with the trusted CA (Certificate Authority) certificate keystore for server authentication.keyManagerPolicy
- policies for retrieving the client certificate for authentication.protocol
- SSL/TLS protocol ("SSLv3", "TLSv1", ""TLSv1.1", "TLSv2", etc.).jsseProvider
- JSSE provider to use instead of default (Conscrypt, Bouncy Castle, etc.)activity
- application activity.java.lang.IllegalArgumentException
- if protocol
or context
is null
.java.security.GeneralSecurityException