Interface JACCRoleMapper
-
- All Known Implementing Classes:
GlassfishRoleMapper
public interface JACCRoleMapper- Author:
- monzillo
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_NAMEstatic StringHANDLER_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanarePrincipalsInRole(String contextId, Principal[] principals, String roleName)Set<String>getDeclaredRoles(String contextId)Set<Principal>getPrincipalsInRole(String contextId, String roleName)BitSetgetRolesOfPrincipals(String contextId, String[] roles, Principal[] principals)Set<String>getRolesOfPrincipals(String contextId, Principal[] principals)BitSetgetRolesOfSubject(String contextId, String[] roles, Subject subject)Set<String>getRolesOfSubject(String contextId, Subject subject)booleanisSubjectInRole(String contextId, Subject subject, String roleName)
-
-
-
Field Detail
-
HANDLER_KEY
static final String HANDLER_KEY
- See Also:
- Constant Field Values
-
CLASS_NAME
static final String CLASS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSubjectInRole
boolean isSubjectInRole(String contextId, Subject subject, String roleName) throws SecurityException
- Throws:
SecurityException
-
arePrincipalsInRole
boolean arePrincipalsInRole(String contextId, Principal[] principals, String roleName) throws SecurityException
- Throws:
SecurityException
-
getRolesOfSubject
Set<String> getRolesOfSubject(String contextId, Subject subject) throws SecurityException, UnsupportedOperationException
-
getRolesOfPrincipals
Set<String> getRolesOfPrincipals(String contextId, Principal[] principals) throws SecurityException, UnsupportedOperationException
-
getRolesOfSubject
BitSet getRolesOfSubject(String contextId, String[] roles, Subject subject) throws SecurityException, UnsupportedOperationException
-
getRolesOfPrincipals
BitSet getRolesOfPrincipals(String contextId, String[] roles, Principal[] principals) throws SecurityException, UnsupportedOperationException
-
getPrincipalsInRole
Set<Principal> getPrincipalsInRole(String contextId, String roleName) throws SecurityException, UnsupportedOperationException
-
-