public class ServerTokenAuthenticator extends java.lang.Object implements Authenticator
| Constructor and Description |
|---|
ServerTokenAuthenticator(SessionConfiguration sessionConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
SessionConfiguration |
getSessionConfiguration()
Get
SessionConfiguration used for authentication |
boolean |
isRefreshable()
Indicates whether this authenticator can be refreshed.
|
okhttp3.Request |
refresh(okhttp3.Response response)
Refresh authentication token that is used to
Authenticator.signRequest(Request.Builder) |
void |
signRequest(okhttp3.Request.Builder builder)
Add authentication header required to the request.
|
public ServerTokenAuthenticator(SessionConfiguration sessionConfiguration)
public void signRequest(okhttp3.Request.Builder builder)
AuthenticatorsignRequest in interface Authenticatorpublic okhttp3.Request refresh(okhttp3.Response response)
AuthenticatorAuthenticator.signRequest(Request.Builder)refresh in interface Authenticatorpublic boolean isRefreshable()
AuthenticatorisRefreshable in interface Authenticatorpublic SessionConfiguration getSessionConfiguration()
SessionConfiguration used for authenticationgetSessionConfiguration in interface Authenticator