public class OAuth2RBAC extends Object
isAuthorized
method to verify authorities. For provides that do not
export the permissions/roles in the token, this interface allows you to communicate with 3rd party services
such as graph APIs to collect the required data.
The contract is that once an authority is checked for a given user, it's value is cached during the execution
of the request. If a user is stored to a persistent storage, or the token is introspected, the cache is cleared
and a new call will be handled to the implementation.
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<OAuth2RBAC> |
__TYPE_ARG |
Constructor and Description |
---|
OAuth2RBAC(OAuth2RBAC delegate) |
OAuth2RBAC(Object delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
OAuth2RBAC |
getDelegate() |
int |
hashCode() |
void |
isAuthorized(AccessToken user,
String authority,
Handler<AsyncResult<Boolean>> handler)
This method should verify if the user has the given authority and return either a boolean value or an error.
|
Observable<Boolean> |
isAuthorizedObservable(AccessToken user,
String authority)
Deprecated.
|
static OAuth2RBAC |
newInstance(OAuth2RBAC arg) |
Single<Boolean> |
rxIsAuthorized(AccessToken user,
String authority)
This method should verify if the user has the given authority and return either a boolean value or an error.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<OAuth2RBAC> __TYPE_ARG
public OAuth2RBAC(OAuth2RBAC delegate)
public OAuth2RBAC(Object delegate)
public OAuth2RBAC getDelegate()
public void isAuthorized(AccessToken user, String authority, Handler<AsyncResult<Boolean>> handler)
user
- the given user to assert onauthority
- the authority to lookuphandler
- the result handler.@Deprecated public Observable<Boolean> isAuthorizedObservable(AccessToken user, String authority)
rxIsAuthorized(io.vertx.rxjava.ext.auth.oauth2.AccessToken, java.lang.String)
insteaduser
- the given user to assert onauthority
- the authority to lookuppublic Single<Boolean> rxIsAuthorized(AccessToken user, String authority)
user
- the given user to assert onauthority
- the authority to lookuppublic static OAuth2RBAC newInstance(OAuth2RBAC arg)
Copyright © 2023 Eclipse. All rights reserved.