org.jboss.security
Class SecurityRolesAssociation
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityRolesAssociation
public SecurityRolesAssociation()
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.