Example usage for Java org.apache.shiro.mgt SecurityManager fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | hasAllRoles(PrincipalCollection subjectPrincipal, Collection Returns true if the corresponding Subject/user has all of the specified roles, false otherwise. |
boolean | hasRole(PrincipalCollection subjectPrincipal, String roleIdentifier) Returns true if the corresponding Subject/user has the specified role, false otherwise. |
boolean | isPermitted(PrincipalCollection principals, String permission) Returns true if the corresponding subject/user is permitted to perform an action or access a resource summarized by the specified permission string. |