com.android.volley.toolbox
クラス AndroidAuthenticator

java.lang.Object
  上位を拡張 com.android.volley.toolbox.AndroidAuthenticator
すべての実装されたインタフェース:
Authenticator

public class AndroidAuthenticator
extends java.lang.Object
implements Authenticator

An Authenticator that uses AccountManager to get auth tokens of a specified type for a specified account.


コンストラクタの概要
AndroidAuthenticator(Context context, Account account, java.lang.String authTokenType)
          Creates a new authenticator.
 
メソッドの概要
 Account getAccount()
          Returns the Account being used by this authenticator.
 java.lang.String getAuthToken()
          Synchronously retrieves an auth token.
 void invalidateAuthToken(java.lang.String authToken)
          Invalidates the provided auth token.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AndroidAuthenticator

public AndroidAuthenticator(Context context,
                            Account account,
                            java.lang.String authTokenType)
Creates a new authenticator.

パラメータ:
context - Context for accessing AccountManager
account - Account to authenticate as
authTokenType - Auth token type passed to AccountManager
メソッドの詳細

getAccount

public Account getAccount()
Returns the Account being used by this authenticator.


getAuthToken

public java.lang.String getAuthToken()
                              throws AuthFailureError
インタフェース Authenticator の記述:
Synchronously retrieves an auth token.

定義:
インタフェース Authenticator 内の getAuthToken
例外:
AuthFailureError - If authentication did not succeed

invalidateAuthToken

public void invalidateAuthToken(java.lang.String authToken)
インタフェース Authenticator の記述:
Invalidates the provided auth token.

定義:
インタフェース Authenticator 内の invalidateAuthToken