public class HttpClientManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DUMMY_PINNING_HOST_NAME |
static java.lang.String |
PARAM_MFPREDIRECTURI |
Modifier and Type | Method and Description |
---|---|
static void |
createInstance(Context context) |
static HttpClientManager |
getInstance() |
OkHttpClient |
getOkHttpClient() |
java.lang.String |
getWebViewUserAgent() |
void |
pinMultipleTrustedCertificatePublicKey(java.security.cert.Certificate[] certificates)
Pin certificate to the instance of the http client.
|
void |
pinTrustedCertificatePublicKey(java.security.cert.Certificate certificate)
Pin certificate to the instance of the http client.
|
void |
pinTrustedCertificatePublicKey(java.security.cert.Certificate certificate,
java.lang.String hostname)
Pin certificate to the instance of the http client.
|
static boolean |
setSSLSocketFactory(java.security.KeyStore keyStore,
char[] keyStorePassword) |
public static final java.lang.String PARAM_MFPREDIRECTURI
public static final java.lang.String DUMMY_PINNING_HOST_NAME
public static boolean setSSLSocketFactory(java.security.KeyStore keyStore, char[] keyStorePassword)
keyStore
- the key store containing the client certificate(s) to be used for SSL two way authenticationkeyStorePassword
- the key store's passwordpublic void pinTrustedCertificatePublicKey(java.security.cert.Certificate certificate)
certificate
- legal certificate or nullpublic void pinMultipleTrustedCertificatePublicKey(java.security.cert.Certificate[] certificates)
certificates
- Array of legal certificates or nullpublic void pinTrustedCertificatePublicKey(java.security.cert.Certificate certificate, java.lang.String hostname)
certificate
- legal certificate or nullpublic static HttpClientManager getInstance()
public OkHttpClient getOkHttpClient()
public java.lang.String getWebViewUserAgent()
public static void createInstance(Context context)