public interface PolicyAdder
| Modifier and Type | Method and Description |
|---|---|
Status |
addNewRule(String alias,
List<AttributeBean> subjectAttributes,
String action,
String resource,
boolean permitted,
Obligation obligation,
boolean moveAfter)
Adds a new simple rule
|
Status |
addXACMLPolicy(String alias,
int index,
String policySetId,
String policyIdPrefix,
Element xacmlPolicy)
Adds a policy in Element format
|
Status |
addXACMLPolicy(String alias,
int index,
String policySetId,
String policyIdPrefix,
org.opensaml.xacml.policy.PolicyType xacmlPolicy)
Adds a policy in XACML format
|
Status |
addXACMLPolicySet(String alias,
int index,
Element xacmlPolicySet)
Adds a policy set in Element format
|
Status |
addXACMLPolicySet(String alias,
int index,
org.opensaml.xacml.policy.PolicySetType xacmlPolicySet)
Adds a policy set in XACML format
|
Status |
updateXACMLPolicy(String alias,
int version,
Element policy)
Updates a Policy in Element format
|
Status |
updateXACMLPolicy(String alias,
int version,
org.opensaml.xacml.policy.PolicyType xacmlPolicy)
Updates a Policy in XACML format
|
Status addNewRule(String alias, List<AttributeBean> subjectAttributes, String action, String resource, boolean permitted, Obligation obligation, boolean moveAfter)
alias - the PAP alias (can be null)subjectAttributes - a map (key - value) of the subject attributesaction - action idresource - resource idpermitted - true if it is a permit rule, false otherwiseobligation - an obligationmoveAfter - boolean value indicating if the rule must be set as last rule of the policyStatus addXACMLPolicy(String alias, int index, String policySetId, String policyIdPrefix, org.opensaml.xacml.policy.PolicyType xacmlPolicy)
alias - the PAP alias (can be null)index - the index of the policy in the policy setpolicySetId - the policy set idpolicyIdPrefix - the policy id prefixxacmlPolicy - the policy in XACML formatStatus addXACMLPolicy(String alias, int index, String policySetId, String policyIdPrefix, Element xacmlPolicy)
alias - the PAP alias (can be null)index - the index of the policy in the policy setpolicySetId - the policy set idpolicyIdPrefix - the policy id prefixxacmlPolicy - the policy in XACML format as a DOM elementStatus addXACMLPolicySet(String alias, int index, org.opensaml.xacml.policy.PolicySetType xacmlPolicySet)
alias - the PAP alias (can be null)index - the index of the policy setxacmlPolicySet - the policy set in XACML formatStatus addXACMLPolicySet(String alias, int index, Element xacmlPolicySet)
alias - the PAP alias (can be null)index - the index of the policy setxacmlPolicySet - the policy set as a DOM elementStatus updateXACMLPolicy(String alias, int version, org.opensaml.xacml.policy.PolicyType xacmlPolicy)
alias - the PAP alias (can be null)version - the version of the old policyxacmlPolicy - the policy in XACML formatStatus updateXACMLPolicy(String alias, int version, Element policy)
alias - the PAP alias (can be null)version - the version of the old policyxacmlPolicy - the policy as a DOM elementCopyright © 2017. All Rights Reserved.