public class OAuth2Auth extends AuthenticationProvider
AuthenticationProvider
instances.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<OAuth2Auth> |
__TYPE_ARG |
Constructor and Description |
---|
OAuth2Auth(OAuth2Auth delegate) |
OAuth2Auth(Object delegate) |
Modifier and Type | Method and Description |
---|---|
String |
authorizeURL(JsonObject params)
The client sends the end-user's browser to this endpoint to request their
authentication and consent.
|
static OAuth2Auth |
create(Vertx vertx)
Create a OAuth2 auth provider
|
static OAuth2Auth |
create(Vertx vertx,
OAuth2Options config)
Create a OAuth2 auth provider
|
OAuth2Auth |
decodeToken(String token)
Deprecated.
|
OAuth2Auth |
decodeToken(String token,
Handler<AsyncResult<AccessToken>> handler)
Deprecated.
|
String |
endSessionURL(User user)
The logout (end-session) endpoint is specified in OpenID Connect Session Management 1.0.
|
String |
endSessionURL(User user,
JsonObject params)
The logout (end-session) endpoint is specified in OpenID Connect Session Management 1.0.
|
boolean |
equals(Object o) |
OAuth2Auth |
getDelegate() |
OAuth2FlowType |
getFlowType()
Deprecated.
|
int |
hashCode() |
OAuth2Auth |
introspectToken(String token)
Deprecated.
|
OAuth2Auth |
introspectToken(String token,
Handler<AsyncResult<AccessToken>> handler)
Deprecated.
|
OAuth2Auth |
introspectToken(String token,
String tokenType)
Deprecated.
|
OAuth2Auth |
introspectToken(String token,
String tokenType,
Handler<AsyncResult<AccessToken>> handler)
Deprecated.
|
OAuth2Auth |
jWKSet()
Retrieve the public server JSON Web Key (JWK) required to verify the authenticity
of issued ID and access tokens.
|
OAuth2Auth |
jWKSet(Handler<AsyncResult<Void>> handler)
Retrieve the public server JSON Web Key (JWK) required to verify the authenticity
of issued ID and access tokens.
|
OAuth2Auth |
loadJWK()
Deprecated.
|
OAuth2Auth |
loadJWK(Handler<AsyncResult<Void>> handler)
Deprecated.
|
OAuth2Auth |
missingKeyHandler(Handler<String> handler)
Handled to be called when a key (mentioned on a JWT) is missing from the current config.
|
static OAuth2Auth |
newInstance(OAuth2Auth arg) |
OAuth2Auth |
rbacHandler(OAuth2RBAC rbac)
Deprecated.
|
OAuth2Auth |
refresh(User user)
Refresh the current User (access token).
|
OAuth2Auth |
refresh(User user,
Handler<AsyncResult<User>> handler)
Refresh the current User (access token).
|
OAuth2Auth |
revoke(User user)
Revoke an obtained access token.
|
OAuth2Auth |
revoke(User user,
Handler<AsyncResult<Void>> handler)
Revoke an obtained access token.
|
OAuth2Auth |
revoke(User user,
String tokenType)
Revoke an obtained access or refresh token.
|
OAuth2Auth |
revoke(User user,
String tokenType,
Handler<AsyncResult<Void>> handler)
Revoke an obtained access or refresh token.
|
Single<AccessToken> |
rxDecodeToken(String token)
Deprecated.
|
Single<AccessToken> |
rxIntrospectToken(String token)
Deprecated.
|
Single<AccessToken> |
rxIntrospectToken(String token,
String tokenType)
Deprecated.
|
Single<Void> |
rxJWKSet()
Retrieve the public server JSON Web Key (JWK) required to verify the authenticity
of issued ID and access tokens.
|
Single<Void> |
rxLoadJWK()
Deprecated.
|
Single<User> |
rxRefresh(User user)
Refresh the current User (access token).
|
Single<Void> |
rxRevoke(User user)
Revoke an obtained access token.
|
Single<Void> |
rxRevoke(User user,
String tokenType)
Revoke an obtained access or refresh token.
|
Single<JsonObject> |
rxUserInfo(User user)
Retrieve profile information and other attributes for a logged-in end-user.
|
String |
toString() |
OAuth2Auth |
userInfo(User user)
Retrieve profile information and other attributes for a logged-in end-user.
|
OAuth2Auth |
userInfo(User user,
Handler<AsyncResult<JsonObject>> handler)
Retrieve profile information and other attributes for a logged-in end-user.
|
authenticate, authenticate, authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
public static final io.vertx.lang.rx.TypeArg<OAuth2Auth> __TYPE_ARG
public OAuth2Auth(OAuth2Auth delegate)
public OAuth2Auth(Object delegate)
public String toString()
toString
in class AuthenticationProvider
public boolean equals(Object o)
equals
in class AuthenticationProvider
public int hashCode()
hashCode
in class AuthenticationProvider
public OAuth2Auth getDelegate()
getDelegate
in class AuthenticationProvider
public static OAuth2Auth create(Vertx vertx)
vertx
- the Vertx instancepublic static OAuth2Auth create(Vertx vertx, OAuth2Options config)
vertx
- the Vertx instanceconfig
- the configpublic OAuth2Auth jWKSet(Handler<AsyncResult<Void>> handler)
handler
- the handler success/failure.public OAuth2Auth jWKSet()
public Single<Void> rxJWKSet()
public OAuth2Auth missingKeyHandler(Handler<String> handler)
jWKSet(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
but being careful to implement
some rate limiting function.
This method isn't generic for several reasons. The provider is not aware of the capabilities
of the backend IdP in terms of max allowed API calls. Some validation could be done at the
key id, which only the end user is aware of.handler
- public String authorizeURL(JsonObject params)
params
- extra params to be included in the final URL.public OAuth2Auth refresh(User user, Handler<AsyncResult<User>> handler)
user
- the user (access token) to be refreshed.handler
- the handler success/failure.public OAuth2Auth refresh(User user)
user
- the user (access token) to be refreshed.public Single<User> rxRefresh(User user)
user
- the user (access token) to be refreshed.public OAuth2Auth revoke(User user, String tokenType, Handler<AsyncResult<Void>> handler)
user
- the user (access token) to revoke.tokenType
- the token type (either access_token or refresh_token).handler
- the handler success/failure.public OAuth2Auth revoke(User user, String tokenType)
user
- the user (access token) to revoke.tokenType
- the token type (either access_token or refresh_token).public Single<Void> rxRevoke(User user, String tokenType)
user
- the user (access token) to revoke.tokenType
- the token type (either access_token or refresh_token).public OAuth2Auth revoke(User user, Handler<AsyncResult<Void>> handler)
user
- the user (access token) to revoke.handler
- the handler success/failure.public OAuth2Auth revoke(User user)
user
- the user (access token) to revoke.public Single<Void> rxRevoke(User user)
user
- the user (access token) to revoke.public OAuth2Auth userInfo(User user, Handler<AsyncResult<JsonObject>> handler)
user
- the user (access token) to fetch the user info.handler
- the handler success/failure.public OAuth2Auth userInfo(User user)
user
- the user (access token) to fetch the user info.public Single<JsonObject> rxUserInfo(User user)
user
- the user (access token) to fetch the user info.public String endSessionURL(User user, JsonObject params)
user
- the user to generate the url forparams
- extra parameters to apply to the urlpublic String endSessionURL(User user)
user
- the user to generate the url for@Deprecated public OAuth2Auth decodeToken(String token, Handler<AsyncResult<AccessToken>> handler)
AccessToken
object. This is useful to handle bearer JWT tokens.token
- the access token (base64 string)handler
- A handler to receive the event@Deprecated public OAuth2Auth decodeToken(String token)
AccessToken
object. This is useful to handle bearer JWT tokens.token
- the access token (base64 string)@Deprecated public Single<AccessToken> rxDecodeToken(String token)
AccessToken
object. This is useful to handle bearer JWT tokens.token
- the access token (base64 string)@Deprecated public OAuth2Auth introspectToken(String token, Handler<AsyncResult<AccessToken>> handler)
token
- the access token (base64 string)handler
- A handler to receive the event@Deprecated public OAuth2Auth introspectToken(String token)
token
- the access token (base64 string)@Deprecated public Single<AccessToken> rxIntrospectToken(String token)
token
- the access token (base64 string)@Deprecated public OAuth2Auth introspectToken(String token, String tokenType, Handler<AsyncResult<AccessToken>> handler)
token
- the access token (base64 string)tokenType
- hint to the token type e.g.: `access_token`handler
- A handler to receive the event@Deprecated public OAuth2Auth introspectToken(String token, String tokenType)
token
- the access token (base64 string)tokenType
- hint to the token type e.g.: `access_token`@Deprecated public Single<AccessToken> rxIntrospectToken(String token, String tokenType)
token
- the access token (base64 string)tokenType
- hint to the token type e.g.: `access_token`@Deprecated public OAuth2FlowType getFlowType()
@Deprecated public OAuth2Auth loadJWK(Handler<AsyncResult<Void>> handler)
handler
- @Deprecated public OAuth2Auth loadJWK()
@Deprecated public Single<Void> rxLoadJWK()
@Deprecated public OAuth2Auth rbacHandler(OAuth2RBAC rbac)
public static OAuth2Auth newInstance(OAuth2Auth arg)
Copyright © 2021 Eclipse. All rights reserved.