Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<AccessToken> |
__TYPE_ARG |
Constructor and Description |
---|
AccessToken(AccessToken delegate) |
AccessToken(Object delegate) |
Modifier and Type | Method and Description |
---|---|
JsonObject |
accessToken()
The Access Token if present parsed as a JsonObject
|
boolean |
equals(Object o) |
Single<OAuth2Response> |
fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
Single<OAuth2Response> |
fetch(String resource)
Fetches a JSON resource using this Access Token.
|
AccessToken |
getDelegate() |
int |
hashCode() |
JsonObject |
idToken()
The Id Token if present parsed as a JsonObject
|
Completable |
introspect()
Introspect access token.
|
Completable |
introspect(String tokenType)
Introspect access token.
|
boolean |
isScopeGranted()
Check if the access token own the required scopes to access to the resource.
|
Completable |
logout()
Revoke refresh token and calls the logout endpoint.
|
static AccessToken |
newInstance(AccessToken arg) |
String |
opaqueAccessToken()
The RAW String if available for the Access Token
|
String |
opaqueIdToken()
The RAW String if available for the Id Token
|
String |
opaqueRefreshToken()
The RAW String if available for the Refresh Token
|
Completable |
refresh()
Refresh the access token
|
Completable |
revoke(String token_type)
Revoke access or refresh token
|
Single<OAuth2Response> |
rxFetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
Single<OAuth2Response> |
rxFetch(String resource)
Fetches a JSON resource using this Access Token.
|
Completable |
rxIntrospect()
Introspect access token.
|
Completable |
rxIntrospect(String tokenType)
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
|
Single<JsonObject> |
rxUserInfo()
Load the user info as per OIDC spec.
|
AccessToken |
setTrustJWT(boolean trust) |
String |
tokenType() |
String |
toString() |
Single<JsonObject> |
userInfo()
Load the user info as per OIDC spec.
|
attributes, authorizations, clearCache, containsKey, create, create, expired, expired, fromName, fromToken, get, isAuthorized, isAuthorized, newInstance, principal, rxIsAuthorized, rxIsAuthorized, setAuthProvider
public static final io.vertx.lang.rx.TypeArg<AccessToken> __TYPE_ARG
public AccessToken(AccessToken delegate)
public AccessToken(Object delegate)
public AccessToken getDelegate()
getDelegate
in class User
public boolean isScopeGranted()
public JsonObject accessToken()
public JsonObject idToken()
public String opaqueAccessToken()
public String opaqueRefreshToken()
public String opaqueIdToken()
public String tokenType()
public AccessToken setTrustJWT(boolean trust)
public Completable refresh()
public Completable rxRefresh()
public Completable revoke(String token_type)
token_type
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".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 Completable logout()
public Completable rxLogout()
public Completable introspect()
public Completable rxIntrospect()
public Completable introspect(String tokenType)
tokenType
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".public Completable rxIntrospect(String tokenType)
tokenType
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".public Single<JsonObject> userInfo()
public Single<JsonObject> rxUserInfo()
public Single<OAuth2Response> fetch(String resource)
resource
- - the resource to fetch.public Single<OAuth2Response> rxFetch(String resource)
resource
- - the resource to fetch.public Single<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.public Single<OAuth2Response> rxFetch(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.public static AccessToken newInstance(AccessToken arg)
Copyright © 2021 Eclipse. All rights reserved.