java.lang.Object | |
↳ | com.android.volley.toolbox.AndroidAuthenticator |
An Authenticator that uses AccountManager to get auth tokens of a specified type for a specified account.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AndroidAuthenticator(Context context, Account account, String authTokenType)
Creates a new authenticator.
| |||||||||||
AndroidAuthenticator(Context context, Account account, String authTokenType, boolean notifyAuthFailure)
Creates a new authenticator.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Account |
getAccount()
Returns the Account being used by this authenticator.
| ||||||||||
String |
getAuthToken()
Synchronously retrieves an auth token.
| ||||||||||
String |
getAuthTokenType()
Returns the Auth Token Type used by this authenticator.
| ||||||||||
void |
invalidateAuthToken(String authToken)
Invalidates the provided auth token.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.android.volley.toolbox.Authenticator
|
Creates a new authenticator.
context | Context for accessing AccountManager |
---|---|
account | Account to authenticate as |
authTokenType | Auth token type passed to AccountManager |
Creates a new authenticator.
context | Context for accessing AccountManager |
---|---|
account | Account to authenticate as |
authTokenType | Auth token type passed to AccountManager |
notifyAuthFailure | Whether to raise a notification upon auth failure |
Returns the Account being used by this authenticator.
Returns the Auth Token Type used by this authenticator.
Invalidates the provided auth token.