Package com.sun.enterprise.security.ee
Class SecurityUtil
- java.lang.Object
-
- com.sun.enterprise.security.ee.SecurityUtil
-
public class SecurityUtil extends Object
This utility class contains JACC related utilities.This is mostly used by the SecurityDeployer, but the getContextID method is broadly shared, and the other public methods are used by the EJBSecurityManagaer and EJBDeployer.
- Author:
- Harpreet Singh, Shing Wai Chan
-
-
Field Summary
Fields Modifier and Type Field Description static String
repository
-
Constructor Summary
Constructors Constructor Description SecurityUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getContextID(EjbBundleDescriptor ejbBundleDesc)
static String
getContextID(WebBundleDescriptor webBundleDescriptor)
static SecurityRoleMapperFactory
getRoleMapperFactory()
static void
removePolicy(String name)
Inform the policy module to take the named policy context out of service.static void
removeRoleMapper(DeploymentContext dc)
-
-
-
Field Detail
-
repository
public static final String repository
-
-
Method Detail
-
getContextID
public static String getContextID(WebBundleDescriptor webBundleDescriptor)
-
getContextID
public static String getContextID(EjbBundleDescriptor ejbBundleDesc)
-
removePolicy
public static void removePolicy(String name) throws IASSecurityException
Inform the policy module to take the named policy context out of service. The policy context is transitioned to the deleted state. In our provider implementation, the corresponding policy file is deleted, as the presence of a policy file in the repository is how we persistently remember which policy contexts are in service.- Parameters:
String
- name - the module id which serves to identify the corresponding policy context. The name shall not be null.- Throws:
IASSecurityException
-
getRoleMapperFactory
public static SecurityRoleMapperFactory getRoleMapperFactory()
-
removeRoleMapper
public static void removeRoleMapper(DeploymentContext dc)
-
-