public class TokenAuthentication extends Object implements Authentication
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_HEADER
Name of the header in the HTTP responses that carries the renewed authentication token.
|
| Modifier and Type | Method and Description |
|---|---|
com.squareup.okhttp.Request |
authenticate(com.squareup.okhttp.Request unauthenticated)
Authenticates the given request.
|
static TokenAuthentication |
token(String token) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowAbiquoTokenpublic static final String AUTH_HEADER
public static TokenAuthentication token(String token)
public com.squareup.okhttp.Request authenticate(com.squareup.okhttp.Request unauthenticated)
Authenticationauthenticate in interface Authenticationunauthenticated - The request to authenticate.Copyright © 2008–2020 Abiquo Holdings S.L.. All rights reserved.