Role- the role.
Permission- the permission.
public class Security<Role,Permission> extends java.lang.Object
|Constructor and Description|
Construct a Security with a SecurityConfig object.
|Modifier and Type||Method and Description|
Check whether the role has the specified permission.
public void checkPermission(Role role, Permission permission) throws NoPermissionException, java.lang.NullPointerException
Check whether the role has the specified permission. A role is denied from a permission only if any one of the conditions listed in below is true:
If a role is NOT denied from a permission, he/she has the permission only if any one of the conditions shown in below is true: