com.sun.enterprise.security.jacc.provider
Interface JACCRoleMapper

All Known Implementing Classes:
GlassfishRoleMapper

public interface JACCRoleMapper

Author:
monzillo

Field Summary
static String CLASS_NAME
           
static String HANDLER_KEY
           
 
Method Summary
 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)
           
 

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

getDeclaredRoles

Set<String> getDeclaredRoles(String pcid)

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
Throws:
SecurityException
UnsupportedOperationException

getRolesOfPrincipals

Set<String> getRolesOfPrincipals(String pcid,
                                 Principal[] principals)
                                 throws SecurityException,
                                        UnsupportedOperationException
Throws:
SecurityException
UnsupportedOperationException

getRolesOfSubject

BitSet getRolesOfSubject(String pcid,
                         String[] roles,
                         Subject s)
                         throws SecurityException,
                                UnsupportedOperationException
Throws:
SecurityException
UnsupportedOperationException

getRolesOfPrincipals

BitSet getRolesOfPrincipals(String pcid,
                            String[] roles,
                            Principal[] principals)
                            throws SecurityException,
                                   UnsupportedOperationException
Throws:
SecurityException
UnsupportedOperationException

getPrincipalsInRole

Set<Principal> getPrincipalsInRole(String pcid,
                                   String roleName)
                                   throws SecurityException,
                                          UnsupportedOperationException
Throws:
SecurityException
UnsupportedOperationException


Copyright © 2012 GlassFish Community. All Rights Reserved.