com.vodafone360.people.service
Class Authenticator

java.lang.Object
  extended by AbstractAccountAuthenticator
      extended by com.vodafone360.people.service.Authenticator

public class Authenticator
extends AbstractAccountAuthenticator

This class is an implementation of AbstractAccountAuthenticator for authenticating accounts in the 360 People Account space.


Field Summary
static java.lang.String ACTION_ONE_ACCOUNT_ONLY_INTENT
          Intent action to send to StartActivity activity.
private  MainApplication mApplication
           
 
Constructor Summary
Authenticator(Context context, MainApplication application)
          Constructor
 
Method Summary
 Bundle addAccount(AccountAuthenticatorResponse response, java.lang.String accountType, java.lang.String authTokenType, java.lang.String[] requiredFeatures, Bundle options)
          
 Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options)
          
 Bundle editProperties(AccountAuthenticatorResponse response, java.lang.String accountType)
          
 Bundle getAccountRemovalAllowed(AccountAuthenticatorResponse response, Account account)
          
 Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, java.lang.String authTokenType, Bundle loginOptions)
          
 java.lang.String getAuthTokenLabel(java.lang.String authTokenType)
          
 Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, java.lang.String[] features)
          
 Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, java.lang.String authTokenType, Bundle loginOptions)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mApplication

private final MainApplication mApplication

ACTION_ONE_ACCOUNT_ONLY_INTENT

public static final java.lang.String ACTION_ONE_ACCOUNT_ONLY_INTENT
Intent action to send to StartActivity activity. Upon receiving this action a UI notification should be presented regarding only one 360 People account being supported.

See Also:
Constant Field Values
Constructor Detail

Authenticator

public Authenticator(Context context,
                     MainApplication application)
Constructor

Parameters:
context - Context passed to superclass
application - MainApplication object needed to remove user data
Method Detail

addAccount

public Bundle addAccount(AccountAuthenticatorResponse response,
                         java.lang.String accountType,
                         java.lang.String authTokenType,
                         java.lang.String[] requiredFeatures,
                         Bundle options)


getAccountRemovalAllowed

public Bundle getAccountRemovalAllowed(AccountAuthenticatorResponse response,
                                       Account account)
                                throws NetworkErrorException

Throws:
NetworkErrorException

confirmCredentials

public Bundle confirmCredentials(AccountAuthenticatorResponse response,
                                 Account account,
                                 Bundle options)


editProperties

public Bundle editProperties(AccountAuthenticatorResponse response,
                             java.lang.String accountType)


getAuthToken

public Bundle getAuthToken(AccountAuthenticatorResponse response,
                           Account account,
                           java.lang.String authTokenType,
                           Bundle loginOptions)


getAuthTokenLabel

public java.lang.String getAuthTokenLabel(java.lang.String authTokenType)


hasFeatures

public Bundle hasFeatures(AccountAuthenticatorResponse response,
                          Account account,
                          java.lang.String[] features)


updateCredentials

public Bundle updateCredentials(AccountAuthenticatorResponse response,
                                Account account,
                                java.lang.String authTokenType,
                                Bundle loginOptions)



JavaDoc