@Deprecated public interface AccessToken extends User
Modifier and Type | Method and Description |
---|---|
JsonObject |
accessToken()
Deprecated.
The Access Token if present parsed as a JsonObject
|
default Future<OAuth2Response> |
fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Deprecated.
Fetches a JSON resource using this Access Token.
|
AccessToken |
fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<OAuth2Response>> callback)
Deprecated.
Fetches a JSON resource using this Access Token.
|
default Future<OAuth2Response> |
fetch(String resource)
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
|
default Future<Void> |
introspect()
Deprecated.
Introspect access token.
|
AccessToken |
introspect(Handler<AsyncResult<Void>> callback)
Deprecated.
Introspect access token.
|
default Future<Void> |
introspect(String tokenType)
Deprecated.
Introspect access token.
|
AccessToken |
introspect(String tokenType,
Handler<AsyncResult<Void>> callback)
Deprecated.
Introspect access token.
|
boolean |
isScopeGranted()
Deprecated.
Check if the access token own the required scopes to access to the resource.
|
default Future<Void> |
logout()
Deprecated.
Revoke refresh token and calls the logout endpoint.
|
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
|
default Future<Void> |
refresh()
Deprecated.
Refresh the access token
|
AccessToken |
refresh(Handler<AsyncResult<Void>> callback)
Deprecated.
Refresh the access token
|
default Future<Void> |
revoke(String token_type)
Deprecated.
Revoke access or refresh token
|
AccessToken |
revoke(String token_type,
Handler<AsyncResult<Void>> callback)
Deprecated.
Revoke access or refresh token
|
AccessToken |
setTrustJWT(boolean trust)
Deprecated.
|
String |
tokenType()
Deprecated.
|
default Future<JsonObject> |
userInfo()
Deprecated.
Load the user info as per OIDC spec.
|
AccessToken |
userInfo(Handler<AsyncResult<JsonObject>> callback)
Deprecated.
Load the user info as per OIDC spec.
|
attributes, authorizations, clearCache, containsKey, create, create, expired, expired, fromName, fromToken, get, isAuthorized, isAuthorized, isAuthorized, isAuthorized, principal, setAuthProvider
boolean isScopeGranted()
JsonObject accessToken()
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.default Future<Void> refresh()
refresh(Handler)
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.default Future<Void> revoke(String token_type)
token_type
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".revoke(String, Handler)
AccessToken logout(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.default Future<Void> logout()
logout(Handler)
AccessToken introspect(Handler<AsyncResult<Void>> callback)
callback
- - The callback function returning the results.default Future<Void> introspect()
introspect(Handler)
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.default Future<Void> introspect(String tokenType)
tokenType
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".introspect(String, Handler)
AccessToken userInfo(Handler<AsyncResult<JsonObject>> callback)
callback
- - The callback function returning the results.default Future<JsonObject> userInfo()
userInfo(Handler)
default AccessToken fetch(String resource, Handler<AsyncResult<OAuth2Response>> callback)
resource
- - the resource to fetch.callback
- - The callback function returning the results.default Future<OAuth2Response> fetch(String resource)
resource
- - the resource to fetch.fetch(String, Handler)
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.default Future<OAuth2Response> fetch(HttpMethod method, String resource, JsonObject headers, Buffer payload)
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.fetch(HttpMethod, String, JsonObject, Buffer, Handler)
Copyright © 2021 Eclipse. All rights reserved.