Modifier and Type | Method and Description |
---|---|
boolean |
expired()
Check if the access token is expired or not.
|
AccessToken |
logout(Handler<AsyncResult<Void>> callback)
Revoke refresh token and calls the logout endpoint.
|
AccessToken |
refresh(Handler<AsyncResult<Void>> callback)
Refresh the access token
|
AccessToken |
revoke(String token_type,
Handler<AsyncResult<Void>> callback)
Revoke access or refresh token
|
clearCache, isAuthorised, principal, setAuthProvider
boolean expired()
AccessToken refresh(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.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.AccessToken logout(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.Copyright © 2016. All rights reserved.