Support for OkHttp. More...
Inherits Interceptor.
This class provides support for the OkHttp HTTP framework, by means of an Interceptor that can be added when creating an OkHttpClient object. The Interceptor directs HTTP requests through the BlackBerry Dynamics secure communications system.
In order to use OkHttp, it is necessary to include it as a dependency, thus:
Please note the following:
Public Member Functions | |
void | initAuthenticatorSupport (OkHttpClient client) |
Method to enable Authenticator support. | |
void | disablePeerVerification () |
Method to disable Peer verification for your server. | |
void | disableHostVerification () |
Method to disable Host verification for your server. | |
void | setAllowRedirects (boolean allowRedirect) |
API method to enable/disable redirects. More... | |
void | setCookieJar (CookieJar cookieJar) |
API method to set CookieJar to BBCustomInterceptor More... | |
void | clearCredentialCaches () |
API method to request Dynamics credential caches for NTLM and kerberos are cleared before next request. More... | |
void setAllowRedirects | ( | boolean | allowRedirect | ) |
All redirects are allowed by default.
allowRedirect | - false to disable redirects, true to enable redirects. |
void setCookieJar | ( | CookieJar | cookieJar | ) |
cookieJar | - BBCookieJar to be set. |
void clearCredentialCaches | ( | ) |
Note that this will not affect authorized connections being re-used.