Class DigestAuthenticator
java.lang.Object
org.infinispan.client.rest.impl.okhttp.auth.AbstractAuthenticator
org.infinispan.client.rest.impl.okhttp.auth.DigestAuthenticator
- All Implemented Interfaces:
okhttp3.Authenticator,CachingAuthenticator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.client.rest.impl.okhttp.auth.AbstractAuthenticator
AbstractAuthenticator.AuthenticationException -
Field Summary
Fields inherited from class org.infinispan.client.rest.impl.okhttp.auth.AbstractAuthenticator
WWW_AUTH, WWW_AUTH_RESPFields inherited from interface okhttp3.Authenticator
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Requestauthenticate(okhttp3.Route route, okhttp3.Response response) okhttp3.RequestauthenticateWithState(okhttp3.Route route, okhttp3.Request request) static Stringstatic byte[]getAsciiBytes(String data) Returns the charset used for the credentials.
-
Constructor Details
-
DigestAuthenticator
-
-
Method Details
-
createCnonce
-
authenticate
public okhttp3.Request authenticate(okhttp3.Route route, okhttp3.Response response) throws IOException - Specified by:
authenticatein interfaceokhttp3.Authenticator- Throws:
IOException
-
authenticateWithState
public okhttp3.Request authenticateWithState(okhttp3.Route route, okhttp3.Request request) throws IOException - Specified by:
authenticateWithStatein interfaceCachingAuthenticator- Throws:
IOException
-
getCredentialsCharset
Returns the charset used for the credentials.- Returns:
- the credentials charset
-
getAsciiBytes
-