public class OrAuthorizationImpl extends Object implements OrAuthorization
| Constructor and Description |
|---|
OrAuthorizationImpl() |
| Modifier and Type | Method and Description |
|---|---|
OrAuthorization |
addAuthorization(Authorization authorization) |
boolean |
equals(Object obj) |
List<Authorization> |
getAuthorizations() |
int |
hashCode() |
boolean |
match(AuthorizationContext context)
this methods verifies whether or not the authorization match the specified
context.
|
boolean |
verify(Authorization otherAuthorization)
this method verifies whether or not the authorization implies the specified
authorization.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcreatematchpublic OrAuthorization addAuthorization(Authorization authorization)
addAuthorization in interface OrAuthorizationpublic List<Authorization> getAuthorizations()
getAuthorizations in interface OrAuthorizationpublic boolean match(AuthorizationContext context)
Authorizationmatch in interface Authorizationcontext - the context.public boolean verify(Authorization otherAuthorization)
AuthorizationWildcardPermissionBasedAuthorization, this method
may return true even if the permissions are different
WildcardPermissionBasedAuthorization.create('*').verify(WildcardPermissionBasedAuthorization.create('anypermission'))
would return trueverify in interface AuthorizationotherAuthorization - the authorization.Copyright © 2021. All rights reserved.