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() |
Single<Boolean> |
isAuthorized(AccessToken user,
String authority)
Deprecated.
|
static OAuth2RBAC |
newInstance(OAuth2RBAC arg) |
Single<Boolean> |
rxIsAuthorized(AccessToken user,
String authority)
Deprecated.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<OAuth2RBAC> __TYPE_ARG
public OAuth2RBAC(OAuth2RBAC delegate)
public OAuth2RBAC(Object delegate)
public OAuth2RBAC getDelegate()
@Deprecated public Single<Boolean> isAuthorized(AccessToken user, String authority)
user
- the given user to assert onauthority
- the authority to lookup@Deprecated public Single<Boolean> rxIsAuthorized(AccessToken user, String authority)
user
- the given user to assert onauthority
- the authority to lookuppublic static OAuth2RBAC newInstance(OAuth2RBAC arg)
Copyright © 2021 Eclipse. All rights reserved.