public class Authenticator
extends android.accounts.AbstractAccountAuthenticator
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
context_ |
Constructor and Description |
---|
Authenticator(android.content.Context context)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
android.os.Bundle |
addAccount(android.accounts.AccountAuthenticatorResponse response,
java.lang.String accountType,
java.lang.String authTokenType,
java.lang.String[] requiredFeatures,
android.os.Bundle options)
Don't add additional accounts
|
android.os.Bundle |
confirmCredentials(android.accounts.AccountAuthenticatorResponse r,
android.accounts.Account account,
android.os.Bundle bundle)
Ignore attempts to confirm credentials
|
android.os.Bundle |
editProperties(android.accounts.AccountAuthenticatorResponse r,
java.lang.String s)
Editing properties is not supported
|
android.os.Bundle |
getAuthToken(android.accounts.AccountAuthenticatorResponse r,
android.accounts.Account account,
java.lang.String authTokenType,
android.os.Bundle options)
Getting an authentication token is not supported
|
java.lang.String |
getAuthTokenLabel(java.lang.String s)
Getting a label for the auth token is not supported
|
android.os.Bundle |
hasFeatures(android.accounts.AccountAuthenticatorResponse r,
android.accounts.Account account,
java.lang.String[] strings)
Checking features for the account is not supported
|
android.os.Bundle |
updateCredentials(android.accounts.AccountAuthenticatorResponse r,
android.accounts.Account account,
java.lang.String s,
android.os.Bundle bundle)
Updating user credentials is not supported
|
public Authenticator(android.content.Context context)
public android.os.Bundle editProperties(android.accounts.AccountAuthenticatorResponse r, java.lang.String s)
editProperties
in class android.accounts.AbstractAccountAuthenticator
public android.os.Bundle addAccount(android.accounts.AccountAuthenticatorResponse response, java.lang.String accountType, java.lang.String authTokenType, java.lang.String[] requiredFeatures, android.os.Bundle options) throws android.accounts.NetworkErrorException
addAccount
in class android.accounts.AbstractAccountAuthenticator
android.accounts.NetworkErrorException
public android.os.Bundle confirmCredentials(android.accounts.AccountAuthenticatorResponse r, android.accounts.Account account, android.os.Bundle bundle) throws android.accounts.NetworkErrorException
confirmCredentials
in class android.accounts.AbstractAccountAuthenticator
android.accounts.NetworkErrorException
public android.os.Bundle getAuthToken(android.accounts.AccountAuthenticatorResponse r, android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options) throws android.accounts.NetworkErrorException
getAuthToken
in class android.accounts.AbstractAccountAuthenticator
android.accounts.NetworkErrorException
public java.lang.String getAuthTokenLabel(java.lang.String s)
getAuthTokenLabel
in class android.accounts.AbstractAccountAuthenticator
public android.os.Bundle updateCredentials(android.accounts.AccountAuthenticatorResponse r, android.accounts.Account account, java.lang.String s, android.os.Bundle bundle) throws android.accounts.NetworkErrorException
updateCredentials
in class android.accounts.AbstractAccountAuthenticator
android.accounts.NetworkErrorException
public android.os.Bundle hasFeatures(android.accounts.AccountAuthenticatorResponse r, android.accounts.Account account, java.lang.String[] strings) throws android.accounts.NetworkErrorException
hasFeatures
in class android.accounts.AbstractAccountAuthenticator
android.accounts.NetworkErrorException