public class GlassfishRoleMapper extends Object implements JACCRoleMapper
CLASS_NAME, HANDLER_KEY
Constructor and Description |
---|
GlassfishRoleMapper(Logger logger) |
Modifier and Type | Method and Description |
---|---|
boolean |
arePrincipalsInRole(SecurityRoleMapper srm,
Principal[] principals,
String roleName) |
boolean |
arePrincipalsInRole(String pcid,
Principal[] principals,
String roleName) |
Set<String> |
getDeclaredRoles(String pcid) |
Set<Principal> |
getPrincipalsInRole(String pcid,
String roleName) |
Set<String> |
getRolesOfPrincipals(String pcid,
Principal[] principals) |
BitSet |
getRolesOfPrincipals(String pcid,
String[] roles,
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) |
public GlassfishRoleMapper(Logger logger)
public boolean arePrincipalsInRole(SecurityRoleMapper srm, Principal[] principals, String roleName) throws SecurityException
SecurityException
public Set<String> getDeclaredRoles(String pcid)
getDeclaredRoles
in interface JACCRoleMapper
public boolean isSubjectInRole(String pcid, Subject s, String roleName) throws SecurityException
isSubjectInRole
in interface JACCRoleMapper
SecurityException
public boolean arePrincipalsInRole(String pcid, Principal[] principals, String roleName) throws SecurityException
arePrincipalsInRole
in interface JACCRoleMapper
SecurityException
public Set<String> getRolesOfSubject(String pcid, Subject s) throws SecurityException, UnsupportedOperationException
getRolesOfSubject
in interface JACCRoleMapper
SecurityException
UnsupportedOperationException
public Set<String> getRolesOfPrincipals(String pcid, Principal[] principals) throws SecurityException, UnsupportedOperationException
getRolesOfPrincipals
in interface JACCRoleMapper
SecurityException
UnsupportedOperationException
public BitSet getRolesOfSubject(String pcid, String[] roles, Subject s) throws SecurityException, UnsupportedOperationException
getRolesOfSubject
in interface JACCRoleMapper
SecurityException
UnsupportedOperationException
public BitSet getRolesOfPrincipals(String pcid, String[] roles, Principal[] principals) throws SecurityException, UnsupportedOperationException
getRolesOfPrincipals
in interface JACCRoleMapper
SecurityException
UnsupportedOperationException
public Set<Principal> getPrincipalsInRole(String pcid, String roleName) throws SecurityException, UnsupportedOperationException
getPrincipalsInRole
in interface JACCRoleMapper
SecurityException
UnsupportedOperationException
Copyright © 2018. All rights reserved.