public class PasswordAuthorizer extends BaseAuthorizer implements CustomHeadersAuthorizer, CredentialAuthorizer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Constructor and Description |
|---|
PasswordAuthorizer(java.lang.String username,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorizeURLRequest(Request.Builder builder)
May add a header to the request (usually "Authorization:") to convey the authorization token.
|
java.lang.String |
authUserInfo() |
java.lang.String |
getUsername() |
boolean |
removeStoredCredentials() |
getLocalUUID, getRemoteURL, setLocalUUID, setRemoteURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocalUUID, getRemoteURL, setLocalUUID, setRemoteURLpublic static final java.lang.String TAG
public PasswordAuthorizer(java.lang.String username,
java.lang.String password)
public boolean authorizeURLRequest(Request.Builder builder)
CustomHeadersAuthorizerauthorizeURLRequest in interface CustomHeadersAuthorizerbuilder - The URL request to authenticate.public java.lang.String authUserInfo()
authUserInfo in interface CredentialAuthorizerpublic boolean removeStoredCredentials()
removeStoredCredentials in interface AuthorizerremoveStoredCredentials in class BaseAuthorizerpublic java.lang.String getUsername()
getUsername in interface AuthorizergetUsername in class BaseAuthorizer