public class Authorization extends Object
AndAuthorization
NotAuthorization
OrAuthorization
PermissionBasedAuthorization
RoleBasedAuthorization
WildcardPermissionBasedAuthorization
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Authorization> |
__TYPE_ARG |
Constructor and Description |
---|
Authorization(Authorization delegate) |
Authorization(Object delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Authorization |
getDelegate() |
int |
hashCode() |
boolean |
match(AuthorizationContext context)
this methods verifies whether or not the authorization match the specified
context.
|
boolean |
match(User user)
this methods verifies whether or not the authorization match the specified
user.
|
static Authorization |
newInstance(Authorization arg) |
String |
toString() |
boolean |
verify(Authorization authorization)
this method verifies whether or not the authorization implies the specified
authorization.
|
public static final io.vertx.lang.rx.TypeArg<Authorization> __TYPE_ARG
public Authorization(Authorization delegate)
public Authorization(Object delegate)
public Authorization getDelegate()
public boolean match(AuthorizationContext context)
context
- the context.public boolean verify(Authorization authorization)
WildcardPermissionBasedAuthorization
, this method
may return true even if the permissions are different
WildcardPermissionBasedAuthorization.create('*').verify(WildcardPermissionBasedAuthorization.create('anypermission'))
would return trueauthorization
- the authorization.public boolean match(User user)
match(io.vertx.rxjava3.ext.auth.authorization.AuthorizationContext)
user
- the user.public static Authorization newInstance(Authorization arg)
Copyright © 2024 Eclipse. All rights reserved.