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) |
boolean |
expired()
Check if the access token is expired or not.
|
AccessToken |
fetch(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<OAuth2Response>> callback)
Fetches a JSON resource using this Access Token.
|
AccessToken |
fetch(String resource,
Handler<AsyncResult<OAuth2Response>> callback)
Fetches a JSON resource using this Access Token.
|
Observable<OAuth2Response> |
fetchObservable(HttpMethod method,
String resource,
JsonObject headers,
Buffer payload)
Deprecated.
use
rxFetch(java.lang.String) instead |
Observable<OAuth2Response> |
fetchObservable(String resource)
Deprecated.
use
rxFetch(java.lang.String) instead |
AccessToken |
getDelegate() |
int |
hashCode() |
JsonObject |
idToken()
The Id Token if present parsed as a JsonObject
|
AccessToken |
introspect(Handler<AsyncResult<Void>> callback)
Introspect access token.
|
AccessToken |
introspect(String tokenType,
Handler<AsyncResult<Void>> callback)
Introspect access token.
|
Observable<Void> |
introspectObservable()
Deprecated.
use
rxIntrospect() instead |
Observable<Void> |
introspectObservable(String tokenType)
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) |
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
|
AccessToken |
refresh(Handler<AsyncResult<Void>> callback)
Refresh the access token
|
Observable<Void> |
refreshObservable()
Deprecated.
use
rxRefresh() instead |
JsonObject |
refreshToken()
Deprecated.
|
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<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.
|
Single<Void> |
rxIntrospect()
Introspect access token.
|
Single<Void> |
rxIntrospect(String tokenType)
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
|
Single<JsonObject> |
rxUserInfo()
Load the user info as per OIDC spec.
|
AccessToken |
setTrustJWT(boolean trust) |
String |
tokenType() |
String |
toString() |
AccessToken |
userInfo(Handler<AsyncResult<JsonObject>> callback)
Load the user info as per OIDC spec.
|
Observable<JsonObject> |
userInfoObservable()
Deprecated.
use
rxUserInfo() instead |
clearCache, isAuthorised, isAuthorisedObservable, isAuthorized, isAuthorizedObservable, newInstance, principal, rxIsAuthorised, 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 expired()
public JsonObject accessToken()
@Deprecated public JsonObject refreshToken()
public JsonObject idToken()
public String opaqueAccessToken()
public String opaqueRefreshToken()
public String opaqueIdToken()
public String tokenType()
public AccessToken setTrustJWT(boolean trust)
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 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.@Deprecated public Observable<Void> introspectObservable(String tokenType)
rxIntrospect()
insteadtokenType
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".public Single<Void> rxIntrospect(String tokenType)
tokenType
- - A String containing the type of token to revoke. Should be either "access_token" or "refresh_token".public AccessToken userInfo(Handler<AsyncResult<JsonObject>> callback)
callback
- - The callback function returning the results.@Deprecated public Observable<JsonObject> userInfoObservable()
rxUserInfo()
insteadpublic Single<JsonObject> rxUserInfo()
public AccessToken fetch(String resource, Handler<AsyncResult<OAuth2Response>> callback)
resource
- - the resource to fetch.callback
- - The callback function returning the results.@Deprecated public Observable<OAuth2Response> fetchObservable(String resource)
rxFetch(java.lang.String)
insteadresource
- - the resource to fetch.public Single<OAuth2Response> rxFetch(String resource)
resource
- - the resource to fetch.public 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.@Deprecated public Observable<OAuth2Response> fetchObservable(HttpMethod method, String resource, JsonObject headers, Buffer payload)
rxFetch(java.lang.String)
insteadmethod
- - 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 © 2023 Eclipse. All rights reserved.