public abstract class BaseAccountAuthenticator extends AbstractAccountAuthenticator
AbstractAccountAuthenticator implementation that can be used as base for custom implementations
of account authenticator.
Each and every abstract method of AbstractAccountAuthenticator is implemented by this
base authenticator class and throws UnsupportedOperationException.
KEY_CUSTOM_TOKEN_EXPIRY| Constructor and Description |
|---|
BaseAccountAuthenticator(Context context)
Creates a new instance of BaseAccountAuthenticator with the given context.
|
| Modifier and Type | Method and Description |
|---|---|
Bundle |
addAccount(AccountAuthenticatorResponse response,
String accountType,
String authTokenType,
String[] requiredFeatures,
Bundle options) |
Bundle |
confirmCredentials(AccountAuthenticatorResponse response,
Account account,
Bundle options) |
Bundle |
editProperties(AccountAuthenticatorResponse response,
String accountType) |
Bundle |
getAuthToken(AccountAuthenticatorResponse response,
Account account,
String authTokenType,
Bundle options) |
String |
getAuthTokenLabel(String authTokenType) |
Bundle |
hasFeatures(AccountAuthenticatorResponse response,
Account account,
String[] features) |
Bundle |
updateCredentials(AccountAuthenticatorResponse response,
Account account,
String authTokenType,
Bundle options) |
addAccountFromCredentials, getAccountCredentialsForCloning, getAccountRemovalAllowed, getIBinderpublic BaseAccountAuthenticator(@NonNull Context context)
context - The context used by parent AbstractAccountAuthenticator for permissions
checks.public Bundle editProperties(AccountAuthenticatorResponse response, String accountType)
editProperties in class AbstractAccountAuthenticatorpublic Bundle addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) throws NetworkErrorException
addAccount in class AbstractAccountAuthenticatorNetworkErrorExceptionpublic Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) throws NetworkErrorException
confirmCredentials in class AbstractAccountAuthenticatorNetworkErrorExceptionpublic Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException
getAuthToken in class AbstractAccountAuthenticatorNetworkErrorExceptionpublic String getAuthTokenLabel(String authTokenType)
getAuthTokenLabel in class AbstractAccountAuthenticatorpublic Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException
updateCredentials in class AbstractAccountAuthenticatorNetworkErrorExceptionpublic Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) throws NetworkErrorException
hasFeatures in class AbstractAccountAuthenticatorNetworkErrorException