public interface Authorization
Modifier and Type | Method and Description |
---|---|
boolean |
match(AuthorizationContext context)
this methods verifies whether or not the authorization match the specified
context.
|
default boolean |
match(User user)
this methods verifies whether or not the authorization match the specified
user.
|
boolean |
verify(Authorization authorization)
this method verifies whether or not the authorization implies the specified
authorization.
|
boolean match(AuthorizationContext context)
context
- the context.default boolean match(User user)
match(AuthorizationContext)
user
- the user.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.Copyright © 2024 Eclipse. All rights reserved.