public class CachingAuthenticatorDecorator
extends java.lang.Object
implements okhttp3.Authenticator
AuthenticationCacheInterceptor.
Depending on your use case you will probably need to use a ConcurrentHashMap.| Constructor and Description |
|---|
CachingAuthenticatorDecorator(okhttp3.Authenticator innerAuthenticator,
java.util.Map<java.lang.String,CachingAuthenticator> authCache) |
CachingAuthenticatorDecorator(okhttp3.Authenticator innerAuthenticator,
java.util.Map<java.lang.String,CachingAuthenticator> authCache,
CacheKeyProvider cacheKeyProvider) |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Request |
authenticate(okhttp3.Route route,
okhttp3.Response response) |
public CachingAuthenticatorDecorator(okhttp3.Authenticator innerAuthenticator,
java.util.Map<java.lang.String,CachingAuthenticator> authCache,
CacheKeyProvider cacheKeyProvider)
public CachingAuthenticatorDecorator(okhttp3.Authenticator innerAuthenticator,
java.util.Map<java.lang.String,CachingAuthenticator> authCache)