com.sun.enterprise.security.jacc.provider
Class GlassfishRoleMapper
java.lang.Object
com.sun.enterprise.security.jacc.provider.GlassfishRoleMapper
- All Implemented Interfaces:
- JACCRoleMapper
public class GlassfishRoleMapper
- extends Object
- implements JACCRoleMapper
Glassfish role mapper
NB: mapper only supports disjunctive
(as apposed to conjunctive principal 2 role mappings. IOW, there
is no way to require 2 or more principals to be in a Role.
- Author:
- monzillo
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlassfishRoleMapper
public GlassfishRoleMapper(Logger logger)
arePrincipalsInRole
public boolean arePrincipalsInRole(SecurityRoleMapper srm,
Principal[] principals,
String roleName)
throws SecurityException
- Throws:
SecurityException
getDeclaredRoles
public Set<String> getDeclaredRoles(String pcid)
- Specified by:
getDeclaredRoles in interface JACCRoleMapper
isSubjectInRole
public boolean isSubjectInRole(String pcid,
Subject s,
String roleName)
throws SecurityException
- Specified by:
isSubjectInRole in interface JACCRoleMapper
- Throws:
SecurityException
arePrincipalsInRole
public boolean arePrincipalsInRole(String pcid,
Principal[] principals,
String roleName)
throws SecurityException
- Specified by:
arePrincipalsInRole in interface JACCRoleMapper
- Throws:
SecurityException
getRolesOfSubject
public Set<String> getRolesOfSubject(String pcid,
Subject s)
throws SecurityException,
UnsupportedOperationException
- Specified by:
getRolesOfSubject in interface JACCRoleMapper
- Throws:
SecurityException
UnsupportedOperationException
getRolesOfPrincipals
public Set<String> getRolesOfPrincipals(String pcid,
Principal[] principals)
throws SecurityException,
UnsupportedOperationException
- Specified by:
getRolesOfPrincipals in interface JACCRoleMapper
- Throws:
SecurityException
UnsupportedOperationException
getRolesOfSubject
public BitSet getRolesOfSubject(String pcid,
String[] roles,
Subject s)
throws SecurityException,
UnsupportedOperationException
- Specified by:
getRolesOfSubject in interface JACCRoleMapper
- Throws:
SecurityException
UnsupportedOperationException
getRolesOfPrincipals
public BitSet getRolesOfPrincipals(String pcid,
String[] roles,
Principal[] principals)
throws SecurityException,
UnsupportedOperationException
- Specified by:
getRolesOfPrincipals in interface JACCRoleMapper
- Throws:
SecurityException
UnsupportedOperationException
getPrincipalsInRole
public Set<Principal> getPrincipalsInRole(String pcid,
String roleName)
throws SecurityException,
UnsupportedOperationException
- Specified by:
getPrincipalsInRole in interface JACCRoleMapper
- Throws:
SecurityException
UnsupportedOperationException
Copyright © 2012 GlassFish Community. All Rights Reserved.