public static final class OkHTTPClient.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
OkHTTPClient |
build()
Returns the instance of the policy.
|
OkHTTPClient.Builder |
keepAliveConnection(int minutes)
Set the keep alive connection pool.
|
OkHTTPClient.Builder |
setTrustCertStore(java.security.KeyStore trustCertStore)
Set the X509 certificate trust store.
|
OkHTTPClient.Builder |
setX509TrustManager(javax.net.ssl.X509TrustManager x509TrustManager)
Set the X509 certificate trust manager.
|
public OkHTTPClient.Builder keepAliveConnection(int minutes)
minutes
- time to set in minutes (default 30).public OkHTTPClient.Builder setX509TrustManager(javax.net.ssl.X509TrustManager x509TrustManager)
x509TrustManager
- certificate trust manager.public OkHTTPClient.Builder setTrustCertStore(java.security.KeyStore trustCertStore) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException
trustCertStore
- the keystore with the certificates trusted.java.security.NoSuchAlgorithmException
- if exception occurs.java.security.KeyStoreException
- if exception occurs.public OkHTTPClient build()