public interface Subject
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(java.lang.String permission)
Check whether this subject has been granted the given permission
and throw an exception on error.
|
java.lang.String[] |
getGroups()
Get a list of groups that this subject is a part of.
|
boolean |
hasPermission(java.lang.String permission)
Return whether this subject has the given permission.
|
java.lang.String[] getGroups()
void checkPermission(java.lang.String permission) throws AuthorizationException
permission
- the permissionAuthorizationException
- thrown if not permittedboolean hasPermission(java.lang.String permission)
permission
- the permission