Interface JACCRoleMapper
-
- All Known Implementing Classes:
GlassfishRoleMapper
public interface JACCRoleMapper
- Author:
- monzillo
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS_NAME
static String
HANDLER_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
arePrincipalsInRole(String pcid, Principal[] principals, String roleName)
Set<String>
getDeclaredRoles(String pcid)
Set<Principal>
getPrincipalsInRole(String pcid, String roleName)
BitSet
getRolesOfPrincipals(String pcid, String[] roles, Principal[] principals)
Set<String>
getRolesOfPrincipals(String pcid, Principal[] principals)
BitSet
getRolesOfSubject(String pcid, String[] roles, Subject s)
Set<String>
getRolesOfSubject(String pcid, Subject s)
boolean
isSubjectInRole(String pcid, Subject s, 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 pcid, Subject s, String roleName) throws SecurityException
- Throws:
SecurityException
-
arePrincipalsInRole
boolean arePrincipalsInRole(String pcid, Principal[] principals, String roleName) throws SecurityException
- Throws:
SecurityException
-
getRolesOfSubject
Set<String> getRolesOfSubject(String pcid, Subject s) throws SecurityException, UnsupportedOperationException
-
getRolesOfPrincipals
Set<String> getRolesOfPrincipals(String pcid, Principal[] principals) throws SecurityException, UnsupportedOperationException
-
getRolesOfSubject
BitSet getRolesOfSubject(String pcid, String[] roles, Subject s) throws SecurityException, UnsupportedOperationException
-
getRolesOfPrincipals
BitSet getRolesOfPrincipals(String pcid, String[] roles, Principal[] principals) throws SecurityException, UnsupportedOperationException
-
getPrincipalsInRole
Set<Principal> getPrincipalsInRole(String pcid, String roleName) throws SecurityException, UnsupportedOperationException
-
-