@Deprecated public interface AccessToken extends User
Modifier and Type | Method and Description |
---|---|
JsonObject |
accessToken()
Deprecated.
The Access Token if present parsed as a JsonObject
|
boolean |
expired()
Deprecated.
Check if the access token is expired or not.
|
AccessToken |
fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<OAuth2Response>> callback)
Deprecated.
Fetches a JSON resource using this Access Token.
|
default AccessToken |
fetch(String resource,
Handler<AsyncResult<OAuth2Response>> callback)
Deprecated.
Fetches a JSON resource using this Access Token.
|
JsonObject |
idToken()
Deprecated.
The Id Token if present parsed as a JsonObject
|
AccessToken |
introspect(Handler<AsyncResult<Void>> callback)
Deprecated.
Introspect access token.
|
AccessToken |
introspect(String tokenType,
Handler<AsyncResult<Void>> callback)
Deprecated.
Introspect access token.
|
AccessToken |
logout(Handler<AsyncResult<Void>> callback)
Deprecated.
Revoke refresh token and calls the logout endpoint.
|
String |
opaqueAccessToken()
Deprecated.
The RAW String if available for the Access Token
|
String |
opaqueIdToken()
Deprecated.
The RAW String if available for the Id Token
|
String |
opaqueRefreshToken()
Deprecated.
The RAW String if available for the Refresh Token
|
AccessToken |
refresh(Handler<AsyncResult<Void>> callback)
Deprecated.
Refresh the access token
|
JsonObject |
refreshToken()
Deprecated.
refresh tokens are specific to the provider and should not be
handled by the consumer. Tokens are still available as an
opaque string.
|
AccessToken |
revoke(String token_type,
Handler<AsyncResult<Void>> callback)
Deprecated.
Revoke access or refresh token
|
AccessToken |
setTrustJWT(boolean trust)
Deprecated.
|
String |
tokenType()
Deprecated.
|
AccessToken |
userInfo(Handler<AsyncResult<JsonObject>> callback)
Deprecated.
Load the user info as per OIDC spec.
|
clearCache, isAuthorised, isAuthorized, principal, setAuthProvider
boolean expired()
JsonObject accessToken()
@Deprecated JsonObject refreshToken()
JsonObject idToken()
String opaqueAccessToken()
String opaqueRefreshToken()
String opaqueIdToken()
String tokenType()
AccessToken setTrustJWT(boolean trust)
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.AccessToken introspect(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.AccessToken introspect(String tokenType, Handler<AsyncResult<Void>> callback)
tokenType
- - 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 userInfo(Handler<AsyncResult<JsonObject>> callback)
callback
- - The callback function returning the results.default AccessToken fetch(String resource, Handler<AsyncResult<OAuth2Response>> callback)
resource
- - the resource to fetch.callback
- - The callback function returning the results.AccessToken fetch(HttpMethod method, String resource, JsonObject headers, Buffer payload, Handler<AsyncResult<OAuth2Response>> callback)
method
- - the HTTP method to user.resource
- - the resource to fetch.headers
- - extra headers to pass to the request.payload
- - payload to send to the server.callback
- - The callback function returning the results.Copyright © 2023 Eclipse. All rights reserved.