SinglePermissionSubject
- public class SinglePermissionSubject implements Subject
Constructors
SinglePermissionSubject
Methods
associateWith
associateWith
checkPermission
checkPermission
- public void checkPermission(Permission permission)
checkPermissions
checkPermissions
- public void checkPermissions(Collection<Permission> permissions)
checkRole
checkRoles
- public void checkRoles(Collection<String> roleIdentifiers)
checkRoles
execute
execute
getPreviousPrincipals
- public PrincipalCollection getPreviousPrincipals()
getPrincipal
getPrincipals
- public PrincipalCollection getPrincipals()
getSession
- public Session getSession()
getSession
- public Session getSession(boolean create)
hasAllRoles
- public boolean hasAllRoles(Collection<String> roleIdentifiers)
hasRole
hasRoles
isAuthenticated
- public boolean isAuthenticated()
isPermitted
isPermitted
- public boolean isPermitted(Permission permission)
isPermitted
- public boolean[] isPermitted(String... permissions)
isPermitted
- public boolean[] isPermitted(List<Permission> permissions)
isPermittedAll
isPermittedAll
- public boolean isPermittedAll(Collection<Permission> permissions)
isRemembered
- public boolean isRemembered()
isRunAs
- public boolean isRunAs()
login
- public void login(AuthenticationToken token)
logout
- public void logout()
releaseRunAs
- public PrincipalCollection releaseRunAs()
runAs
- public void runAs(PrincipalCollection principals)