|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sec.authz.jaccplus.config.internal.PolicyConfigurationUtils
public class PolicyConfigurationUtils
A utility class containing routines for creating and manipulating policy fragments.
Method Summary | |
---|---|
static void |
addAllAuthenticatedUsersToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory,
com.ibm.sec.authz.xacml.policy.Target target)
This method is used to add a Subject to the Target that allows access by all authenticated users. |
static void |
addGroupToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory,
java.lang.String groupId,
com.ibm.sec.authz.xacml.policy.Target target)
This method is used to add a SubjectMatch for the group with the specified name to the given Target. |
static void |
addGroupToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory,
java.lang.String groupId,
com.ibm.sec.authz.xacml.policy.Target target,
boolean autoEscape)
This method is used to add a SubjectMatch for the group with the specified name to the given Target. |
static void |
addSubjectToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory,
java.lang.String subjectId,
com.ibm.sec.authz.xacml.policy.Target target)
This method is used to add a SubjectMatch for the subject with the specified name to the given Target. |
static void |
addSubjectToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory,
java.lang.String subjectId,
com.ibm.sec.authz.xacml.policy.Target target,
boolean autoEscape)
This method is used to add a SubjectMatch for the subject with the specified name to the given Target. |
static com.ibm.sec.authz.xacml.policy.Target |
createEmptyRoleTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory,
java.lang.String roleName)
This method is used to create a new, blank Target for the role specified. |
static com.ibm.sec.authz.xacml.policy.AttributeValue |
createSubjectAttributeValue(java.lang.String potentialDN)
This method is used to create an AttributeValue of the correct type, given a string that potentially be a DN. |
static com.ibm.sec.authz.xacml.policy.AttributeValue |
createSubjectAttributeValue(java.lang.String potentialDN,
boolean autoEscape)
This method is used to create an AttributeValue of the correct type, given a string that potentially be a DN. |
static java.lang.String |
escapeForX500Name(java.lang.String inputDN)
performs backslash escaping on an incoming string |
static java.lang.String |
unescapeForX500Name(java.lang.String inputDN)
performs backslash unescaping on an incoming string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static com.ibm.sec.authz.xacml.policy.Target createEmptyRoleTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory, java.lang.String roleName) throws com.ibm.sec.authz.xacml.config.XACMLConfigurationException
factory
- The XACML policy instance.roleName
- The String name of the role for which the target is being created.
com.ibm.sec.authz.xacml.config.XACMLConfigurationException
public static void addSubjectToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory, java.lang.String subjectId, com.ibm.sec.authz.xacml.policy.Target target) throws com.ibm.sec.authz.xacml.config.XACMLConfigurationException
factory
- The XACML policy instance.subjectId
- The String name of the subject to be added.target
- The Target to which the subject is to be added.
com.ibm.sec.authz.xacml.config.XACMLConfigurationException
public static void addSubjectToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory, java.lang.String subjectId, com.ibm.sec.authz.xacml.policy.Target target, boolean autoEscape) throws com.ibm.sec.authz.xacml.config.XACMLConfigurationException
factory
- The XACML policy instance.subjectId
- The String name of the subject to be added.target
- The Target to which the subject is to be added.autoEscape
- flag to specify whether backslash chars need to be auto escaped
com.ibm.sec.authz.xacml.config.XACMLConfigurationException
public static void addGroupToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory, java.lang.String groupId, com.ibm.sec.authz.xacml.policy.Target target) throws com.ibm.sec.authz.xacml.config.XACMLConfigurationException
factory
- The XACML policy instance.groupId
- The String name of the group to be added.target
- The Target to which the group is to be added.
com.ibm.sec.authz.xacml.config.XACMLConfigurationException
public static void addGroupToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory, java.lang.String groupId, com.ibm.sec.authz.xacml.policy.Target target, boolean autoEscape) throws com.ibm.sec.authz.xacml.config.XACMLConfigurationException
factory
- The XACML policy instance.groupId
- The String name of the group to be added.target
- The Target to which the group is to be added.autoEscape
- flag to specify whether backslash chars need to be auto escaped
com.ibm.sec.authz.xacml.config.XACMLConfigurationException
public static void addAllAuthenticatedUsersToTarget(com.ibm.sec.authz.xacml.config.XACMLPolicyFactory factory, com.ibm.sec.authz.xacml.policy.Target target) throws com.ibm.sec.authz.xacml.config.XACMLConfigurationException
factory
- The XACML policy instance.target
- The Target to which all authenticated users are to be added.
com.ibm.sec.authz.xacml.config.XACMLConfigurationException
public static com.ibm.sec.authz.xacml.policy.AttributeValue createSubjectAttributeValue(java.lang.String potentialDN)
potentialDN
- The String name of the potential DN to be created.
public static com.ibm.sec.authz.xacml.policy.AttributeValue createSubjectAttributeValue(java.lang.String potentialDN, boolean autoEscape)
potentialDN
- The String name of the potential DN to be created.autoEscape
- flag to specify whether backslash chars need to be auto escaped
public static final java.lang.String escapeForX500Name(java.lang.String inputDN)
inputDN
- *
public static final java.lang.String unescapeForX500Name(java.lang.String inputDN)
inputDN
- *
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |