| Constructor and Description |
|---|
AccessToken(AccessToken delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
expired()
Check if the access token is expired or not.
|
Object |
getDelegate() |
AccessToken |
logout(Handler<AsyncResult<Void>> callback)
Revoke refresh token and calls the logout endpoint.
|
Observable<Void> |
logoutObservable()
Revoke refresh token and calls the logout endpoint.
|
static AccessToken |
newInstance(AccessToken arg) |
AccessToken |
refresh(Handler<AsyncResult<Void>> callback)
Refresh the access token
|
Observable<Void> |
refreshObservable()
Refresh the access token
|
AccessToken |
revoke(String token_type,
Handler<AsyncResult<Void>> callback)
Revoke access or refresh token
|
Observable<Void> |
revokeObservable(String token_type)
Revoke access or refresh token
|
clearCache, isAuthorised, isAuthorisedObservable, newInstance, principal, setAuthProviderpublic AccessToken(AccessToken delegate)
public Object getDelegate()
getDelegate in class Userpublic boolean expired()
public AccessToken refresh(Handler<AsyncResult<Void>> callback)
callback - - The callback function returning the results.public Observable<Void> refreshObservable()
public AccessToken revoke(String token_type, Handler<AsyncResult<Void>> callback)
token_type - - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".callback - - The callback function returning the results.public Observable<Void> revokeObservable(String token_type)
token_type - - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".public AccessToken logout(Handler<AsyncResult<Void>> callback)
callback - - The callback function returning the results.public Observable<Void> logoutObservable()
public static AccessToken newInstance(AccessToken arg)
Copyright © 2016. All rights reserved.