Modifier and Type | Field and Description |
---|---|
static TypeArg<AccessToken> |
__TYPE_ARG |
Constructor and Description |
---|
AccessToken(AccessToken delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
expired()
Check if the access token is expired or not.
|
AccessToken |
getDelegate() |
AccessToken |
introspect(Handler<AsyncResult<Void>> callback)
Introspect access token.
|
AccessToken |
logout(Handler<AsyncResult<Void>> callback)
Revoke refresh token and calls the logout endpoint.
|
static AccessToken |
newInstance(AccessToken arg) |
AccessToken |
refresh(Handler<AsyncResult<Void>> callback)
Refresh the access token
|
AccessToken |
revoke(String token_type,
Handler<AsyncResult<Void>> callback)
Revoke access or refresh token
|
Completable |
rxIntrospect()
Introspect access token.
|
Completable |
rxLogout()
Revoke refresh token and calls the logout endpoint.
|
Completable |
rxRefresh()
Refresh the access token
|
Completable |
rxRevoke(String token_type)
Revoke access or refresh token
|
clearCache, isAuthorised, newInstance, principal, rxIsAuthorised, setAuthProvider
public static final TypeArg<AccessToken> __TYPE_ARG
public AccessToken(AccessToken delegate)
public AccessToken getDelegate()
getDelegate
in class User
public boolean expired()
public AccessToken refresh(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.public Completable rxRefresh()
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 Completable rxRevoke(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 Completable rxLogout()
public AccessToken introspect(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.public Completable rxIntrospect()
public static AccessToken newInstance(AccessToken arg)
Copyright © 2017. All rights reserved.