FileDocCategorySizeDatePackage
IAccountAuthenticator.javaAPI DocAndroid 5.1 API18404Sat Mar 14 05:47:56 GMT 2015android.accounts

IAccountAuthenticator

public interface IAccountAuthenticator implements android.os.IInterface
Service that allows the interaction with an authentication server.
hide

Fields Summary
Constructors Summary
Methods Summary
public voidaddAccount(android.accounts.IAccountAuthenticatorResponse response, java.lang.String accountType, java.lang.String authTokenType, java.lang.String[] requiredFeatures, android.os.Bundle options)
prompts the user for account information and adds the result to the IAccountManager

public voidaddAccountFromCredentials(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, android.os.Bundle accountCredentials)
Uses the Bundle containing credentials from another instance of the authenticator to create a copy of the account on this user.

public voidconfirmCredentials(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, android.os.Bundle options)
prompts the user for the credentials of the account

public voideditProperties(android.accounts.IAccountAuthenticatorResponse response, java.lang.String accountType)
launches an activity that lets the user edit and set the properties for an authenticator

public voidgetAccountCredentialsForCloning(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account)
Returns a Bundle containing the required credentials to copy the account across users.

public voidgetAccountRemovalAllowed(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account)
Gets whether or not the account is allowed to be removed.

public voidgetAuthToken(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options)
gets the password by either prompting the user or querying the IAccountManager

public voidgetAuthTokenLabel(android.accounts.IAccountAuthenticatorResponse response, java.lang.String authTokenType)
Gets the user-visible label of the given authtoken type.

public voidhasFeatures(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String[] features)
returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has the specified features

public voidupdateCredentials(android.accounts.IAccountAuthenticatorResponse response, android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options)
prompts the user for a new password and writes it to the IAccountManager