Android.Accounts.AccountManager.PeekAuthToken Method
Gets an auth token from the AccountManager's cache.

Syntax

[Android.Runtime.Register("peekAuthToken", "(Landroid/accounts/Account;Ljava/lang/String;)Ljava/lang/String;", "GetPeekAuthToken_Landroid_accounts_Account_Ljava_lang_String_Handler")]
public virtual string PeekAuthToken (Account account, string authTokenType)

Parameters

account
The account to fetch an auth token for
authTokenType
The type of auth token to fetch, see {#getAuthToken}

Returns

Documentation for this section has not yet been entered.

Remarks

Gets an auth token from the AccountManager's cache. If no auth token is cached for this account, null will be returned -- a new auth token will not be generated, and the server will not be contacted. Intended for use by the authenticator, not directly by applications.

It is safe to call this method from the main thread.

This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#AUTHENTICATE_ACCOUNTS and to have the same UID as the account's authenticator.

[Android Documentation]

Requirements

Namespace: Android.Accounts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5