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