类 AndroidAuthenticator

java.lang.Object
com.android.volley.toolbox.AndroidAuthenticator
所有已实现的接口:
Authenticator

public class AndroidAuthenticator extends Object implements Authenticator
An Authenticator that uses AccountManager to get auth tokens of a specified type for a specified account.
  • 构造器详细资料

    • AndroidAuthenticator

      public AndroidAuthenticator(android.content.Context context, android.accounts.Account account, String authTokenType)
      Creates a new authenticator.
      参数:
      context - Context for accessing AccountManager
      account - Account to authenticate as
      authTokenType - Auth token type passed to AccountManager
    • AndroidAuthenticator

      public AndroidAuthenticator(android.content.Context context, android.accounts.Account account, String authTokenType, boolean notifyAuthFailure)
      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
  • 方法详细资料