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.
|
Observable<Void> |
introspectObservable()
Deprecated.
use
rxIntrospect() instead |
AccessToken |
logout(Handler<AsyncResult<Void>> callback)
Revoke refresh token and calls the logout endpoint.
|
Observable<Void> |
logoutObservable()
Deprecated.
use
rxLogout() instead |
static AccessToken |
newInstance(AccessToken arg) |
AccessToken |
refresh(Handler<AsyncResult<Void>> callback)
Refresh the access token
|
Observable<Void> |
refreshObservable()
Deprecated.
use
rxRefresh() instead |
AccessToken |
revoke(String token_type,
Handler<AsyncResult<Void>> callback)
Revoke access or refresh token
|
Observable<Void> |
revokeObservable(String token_type)
Deprecated.
use
rxRevoke(java.lang.String) instead |
Single<Void> |
rxIntrospect()
Introspect access token.
|
Single<Void> |
rxLogout()
Revoke refresh token and calls the logout endpoint.
|
Single<Void> |
rxRefresh()
Refresh the access token
|
Single<Void> |
rxRevoke(String token_type)
Revoke access or refresh token
|
clearCache, isAuthorised, isAuthorisedObservable, 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.@Deprecated public Observable<Void> refreshObservable()
rxRefresh()
insteadpublic 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.@Deprecated public Observable<Void> revokeObservable(String token_type)
rxRevoke(java.lang.String)
insteadtoken_type
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".public Single<Void> 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.@Deprecated public Observable<Void> logoutObservable()
rxLogout()
insteadpublic Single<Void> rxLogout()
public AccessToken introspect(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.@Deprecated public Observable<Void> introspectObservable()
rxIntrospect()
insteadpublic Single<Void> rxIntrospect()
public static AccessToken newInstance(AccessToken arg)
Copyright © 2017. All rights reserved.