public class SecurityUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
repository |
static String |
VENDOR_PRESENT |
| Constructor and Description |
|---|
SecurityUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generatePolicyFile(String name)
This method obtains the policy configuration object
corresponding to the name, and causes the corresponding policy
statements to be put in service.
|
static String |
getContextID(EjbBundleDescriptor ejbBundleDesc) |
static String |
getContextID(WebBundleDescriptor wbd) |
static SecurityRoleMapperFactory |
getRoleMapperFactory() |
static boolean |
linkPolicyFile(String name,
String linkName,
boolean lastInService)
This method obtains the policy configuration object
corresponding to the name, and links it, for roleMapping purposes
to another.
|
static void |
removePolicy(String name)
Inform the policy module to take the named policy context out of service.
|
static void |
removeRoleMapper(DeploymentContext dc) |
public static final String VENDOR_PRESENT
public static final String repository
public static void generatePolicyFile(String name) throws IASSecurityException
String - name - the module id which serves to identify
the corresponding policy context. The name shall not be null.
If the underlying PolicyModule is the RI PolicyModule,
A SecurityRoleMapper must have been bound to the policy context
before this method is called or the embedded call to pc.commit will
throw an exception.IASSecurityExceptionpublic static void removePolicy(String name) throws IASSecurityException
String - name - the module id which serves to identify
the corresponding policy context. The name shall not be null.IASSecurityExceptionpublic static boolean linkPolicyFile(String name, String linkName, boolean lastInService) throws IASSecurityException
String - name - the module id which serves to identify
the corresponding policy context. The name shall not be null.String - linkName - the module id of the module being linked
to this context. This value may be null, in which case, no link is done,
but the inService state of the named PC is returned.boolean - lastInService - the inService state returned by the previous
call to this method. The value of this argument is only significant when linkName
is not null.IASSecurityExceptionpublic static String getContextID(EjbBundleDescriptor ejbBundleDesc)
public static String getContextID(WebBundleDescriptor wbd)
public static void removeRoleMapper(DeploymentContext dc)
public static SecurityRoleMapperFactory getRoleMapperFactory()
Copyright © 2017. All rights reserved.