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(org.glassfish.deployment.common.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(org.glassfish.deployment.common.SecurityRoleMapper srm,
Principal[] principals,
String roleName)
throws SecurityException
SecurityExceptionpublic Set<String> getDeclaredRoles(String pcid)
getDeclaredRoles in interface JACCRoleMapperpublic boolean isSubjectInRole(String pcid, Subject s, String roleName) throws SecurityException
isSubjectInRole in interface JACCRoleMapperSecurityExceptionpublic boolean arePrincipalsInRole(String pcid, Principal[] principals, String roleName) throws SecurityException
arePrincipalsInRole in interface JACCRoleMapperSecurityExceptionpublic Set<String> getRolesOfSubject(String pcid, Subject s) throws SecurityException, UnsupportedOperationException
getRolesOfSubject in interface JACCRoleMapperSecurityExceptionUnsupportedOperationExceptionpublic Set<String> getRolesOfPrincipals(String pcid, Principal[] principals) throws SecurityException, UnsupportedOperationException
getRolesOfPrincipals in interface JACCRoleMapperSecurityExceptionUnsupportedOperationExceptionpublic BitSet getRolesOfSubject(String pcid, String[] roles, Subject s) throws SecurityException, UnsupportedOperationException
getRolesOfSubject in interface JACCRoleMapperSecurityExceptionUnsupportedOperationExceptionpublic BitSet getRolesOfPrincipals(String pcid, String[] roles, Principal[] principals) throws SecurityException, UnsupportedOperationException
getRolesOfPrincipals in interface JACCRoleMapperSecurityExceptionUnsupportedOperationExceptionpublic Set<Principal> getPrincipalsInRole(String pcid, String roleName) throws SecurityException, UnsupportedOperationException
getPrincipalsInRole in interface JACCRoleMapperSecurityExceptionUnsupportedOperationExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.