Class SecurityRolesAssociation


  • public final class SecurityRolesAssociation
    extends Object
    The SecurityRolesAssociation uses a ThreadLocal to associate the SecurityRoleMetaData from the deployment with the current thread.
    Version:
    $Revision$
    Author:
    Thomas.Diesler@jboss.org, Anil.Saldhana@jboss.org
    • Constructor Detail

      • SecurityRolesAssociation

        public SecurityRolesAssociation()
    • Method Detail

      • getSecurityRoles

        public static Map<String,​Set<String>> getSecurityRoles()
        Get the current map of SecurityRoleMetaData. The map is principal name keyed against a set of rolenames
        Returns:
        A Map that stores SecurityRoleMetaData by roleName
      • setSecurityRoles

        public static void setSecurityRoles​(Map<String,​Set<String>> securityRoles)
        Set the current map of SecurityRoleMetaData.