org.jboss.security
Class SecurityRolesAssociation

java.lang.Object
  extended by org.jboss.security.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: 86122 $
Author:
Thomas.Diesler@jboss.org, Anil.Saldhana@jboss.org

Constructor Summary
SecurityRolesAssociation()
           
 
Method Summary
static Map<String,Set<String>> getSecurityRoles()
          Get the current map of SecurityRoleMetaData.
static void setSecurityRoles(Map<String,Set<String>> securityRoles)
          Set the current map of SecurityRoleMetaData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2009 JBoss Inc.. All Rights Reserved.