public class AccessToken extends User
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<AccessToken> |
__TYPE_ARG |
Constructor and Description |
---|
AccessToken(io.vertx.ext.auth.oauth2.AccessToken delegate) |
AccessToken(Object delegate) |
Modifier and Type | Method and Description |
---|---|
io.vertx.core.json.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(io.vertx.core.http.HttpMethod method,
String resource,
io.vertx.core.json.JsonObject headers,
Buffer payload,
io.vertx.core.Handler<io.vertx.core.AsyncResult<OAuth2Response>> callback)
Fetches a JSON resource using this Access Token.
|
AccessToken |
fetch(String resource,
io.vertx.core.Handler<io.vertx.core.AsyncResult<OAuth2Response>> callback)
Fetches a JSON resource using this Access Token.
|
rx.Observable<OAuth2Response> |
fetchObservable(io.vertx.core.http.HttpMethod method,
String resource,
io.vertx.core.json.JsonObject headers,
Buffer payload)
Deprecated.
use
rxFetch(java.lang.String) instead |
rx.Observable<OAuth2Response> |
fetchObservable(String resource)
Deprecated.
use
rxFetch(java.lang.String) instead |
io.vertx.ext.auth.oauth2.AccessToken |
getDelegate() |
int |
hashCode() |
io.vertx.core.json.JsonObject |
idToken()
The Id Token if present parsed as a JsonObject
|
AccessToken |
introspect(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
Introspect access token.
|
AccessToken |
introspect(String tokenType,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
Introspect access token.
|
rx.Observable<Void> |
introspectObservable()
Deprecated.
use
rxIntrospect() instead |
rx.Observable<Void> |
introspectObservable(String tokenType)
Deprecated.
use
rxIntrospect() instead |
AccessToken |
logout(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
Revoke refresh token and calls the logout endpoint.
|
rx.Observable<Void> |
logoutObservable()
Deprecated.
use
rxLogout() instead |
static AccessToken |
newInstance(io.vertx.ext.auth.oauth2.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(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
Refresh the access token
|
rx.Observable<Void> |
refreshObservable()
Deprecated.
use
rxRefresh() instead |
io.vertx.core.json.JsonObject |
refreshToken()
Deprecated.
|
AccessToken |
revoke(String token_type,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
Revoke access or refresh token
|
rx.Observable<Void> |
revokeObservable(String token_type)
Deprecated.
use
rxRevoke(java.lang.String) instead |
rx.Single<OAuth2Response> |
rxFetch(io.vertx.core.http.HttpMethod method,
String resource,
io.vertx.core.json.JsonObject headers,
Buffer payload)
Fetches a JSON resource using this Access Token.
|
rx.Single<OAuth2Response> |
rxFetch(String resource)
Fetches a JSON resource using this Access Token.
|
rx.Single<Void> |
rxIntrospect()
Introspect access token.
|
rx.Single<Void> |
rxIntrospect(String tokenType)
Introspect access token.
|
rx.Single<Void> |
rxLogout()
Revoke refresh token and calls the logout endpoint.
|
rx.Single<Void> |
rxRefresh()
Refresh the access token
|
rx.Single<Void> |
rxRevoke(String token_type)
Revoke access or refresh token
|
rx.Single<io.vertx.core.json.JsonObject> |
rxUserInfo()
Load the user info as per OIDC spec.
|
AccessToken |
setTrustJWT(boolean trust) |
String |
tokenType() |
String |
toString() |
AccessToken |
userInfo(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> callback)
Load the user info as per OIDC spec.
|
rx.Observable<io.vertx.core.json.JsonObject> |
userInfoObservable()
Deprecated.
use
rxUserInfo() instead |
clearCache, isAuthorised, isAuthorisedObservable, isAuthorized, isAuthorizedObservable, newInstance, principal, rxIsAuthorised, rxIsAuthorized, setAuthProvider
public static final TypeArg<AccessToken> __TYPE_ARG
public AccessToken(io.vertx.ext.auth.oauth2.AccessToken delegate)
public AccessToken(Object delegate)
public io.vertx.ext.auth.oauth2.AccessToken getDelegate()
getDelegate
in class User
public boolean expired()
public io.vertx.core.json.JsonObject accessToken()
@Deprecated public io.vertx.core.json.JsonObject refreshToken()
public io.vertx.core.json.JsonObject idToken()
public String opaqueAccessToken()
public String opaqueRefreshToken()
public String opaqueIdToken()
public String tokenType()
public AccessToken setTrustJWT(boolean trust)
public AccessToken refresh(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
callback
- - The callback function returning the results.@Deprecated public rx.Observable<Void> refreshObservable()
rxRefresh()
insteadpublic rx.Single<Void> rxRefresh()
public AccessToken revoke(String token_type, io.vertx.core.Handler<io.vertx.core.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 rx.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 rx.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(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
callback
- - The callback function returning the results.@Deprecated public rx.Observable<Void> logoutObservable()
rxLogout()
insteadpublic rx.Single<Void> rxLogout()
public AccessToken introspect(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> callback)
callback
- - The callback function returning the results.@Deprecated public rx.Observable<Void> introspectObservable()
rxIntrospect()
insteadpublic rx.Single<Void> rxIntrospect()
public AccessToken introspect(String tokenType, io.vertx.core.Handler<io.vertx.core.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 rx.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 rx.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(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> callback)
callback
- - The callback function returning the results.@Deprecated public rx.Observable<io.vertx.core.json.JsonObject> userInfoObservable()
rxUserInfo()
insteadpublic rx.Single<io.vertx.core.json.JsonObject> rxUserInfo()
public AccessToken fetch(String resource, io.vertx.core.Handler<io.vertx.core.AsyncResult<OAuth2Response>> callback)
resource
- - the resource to fetch.callback
- - The callback function returning the results.@Deprecated public rx.Observable<OAuth2Response> fetchObservable(String resource)
rxFetch(java.lang.String)
insteadresource
- - the resource to fetch.public rx.Single<OAuth2Response> rxFetch(String resource)
resource
- - the resource to fetch.public AccessToken fetch(io.vertx.core.http.HttpMethod method, String resource, io.vertx.core.json.JsonObject headers, Buffer payload, io.vertx.core.Handler<io.vertx.core.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 rx.Observable<OAuth2Response> fetchObservable(io.vertx.core.http.HttpMethod method, String resource, io.vertx.core.json.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 rx.Single<OAuth2Response> rxFetch(io.vertx.core.http.HttpMethod method, String resource, io.vertx.core.json.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(io.vertx.ext.auth.oauth2.AccessToken arg)
Copyright © 2022 Eclipse. All rights reserved.