Interface Account
Package com.yandex.runtime.auth
interface Account
Summary
Methods
|
Type and modifiers |
Method and Description |
|
java.lang.String |
uid() This method may be called on any thread. |
|
void |
requestToken(@NonNull TokenListener tokenListener) |
|
void |
invalidateToken(@NonNull java.lang.String token) |
|
java.lang.String |
httpAuth(@NonNull java.lang.String token) |
Methods
uid
|
@AnyThread @NonNull |
Get the user's UID
This method may be called on any thread.
Its implementation must be thread-safe.
requestToken
|
@AnyThread |
Makes a token request for the provider.
This method may be called often (per each request). For best perfomance your implementation should cache the token. See runtime.auth.TokenListener for additional information.
This method may be called on any thread. Its implementation must be thread-safe.
invalidateToken
|
@AnyThread |
Invalidates the OAuth token for an active account.
The next token request occurs on a new OAuth token request from XToken.
This method may be called on any thread. Its implementation must be thread-safe.
httpAuth
|
@AnyThread @Nullable |
Creates the HTTP authorization header for requests.
return null if default authorization needed ('OAuth token').
This method may be called on any thread. Its implementation must be thread-safe.