public class PolicyAdderImpl extends Object implements PolicyAdder
| Constructor and Description |
|---|
PolicyAdderImpl() |
PolicyAdderImpl(String url) |
| 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
|
void |
setUrl(String url) |
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
|
public PolicyAdderImpl()
public PolicyAdderImpl(String url)
public void setUrl(String url)
url - public Status addNewRule(String alias, List<AttributeBean> subjectAttributes, String action, String resource, boolean permitted, Obligation obligation, boolean moveAfter)
addNewRule in interface PolicyAdderalias - 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 policypublic Status addXACMLPolicy(String alias, int index, String policySetId, String policyIdPrefix, org.opensaml.xacml.policy.PolicyType xacmlPolicy)
addXACMLPolicy in interface PolicyAdderalias - 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 formatpublic Status addXACMLPolicySet(String alias, int index, org.opensaml.xacml.policy.PolicySetType xacmlPolicySet)
addXACMLPolicySet in interface PolicyAdderalias - the PAP alias (can be null)index - the index of the policy setxacmlPolicySet - the policy set in XACML formatpublic Status updateXACMLPolicy(String alias, int version, org.opensaml.xacml.policy.PolicyType xacmlPolicy)
updateXACMLPolicy in interface PolicyAdderalias - the PAP alias (can be null)version - the version of the old policyxacmlPolicy - the policy in XACML formatpublic Status addXACMLPolicy(String alias, int index, String policySetId, String policyIdPrefix, Element xacmlPolicy)
addXACMLPolicy in interface PolicyAdderalias - 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 elementpublic Status addXACMLPolicySet(String alias, int index, Element xacmlPolicySet)
addXACMLPolicySet in interface PolicyAdderalias - the PAP alias (can be null)index - the index of the policy setxacmlPolicySet - the policy set as a DOM elementpublic Status updateXACMLPolicy(String alias, int version, Element policy)
updateXACMLPolicy in interface PolicyAdderalias - the PAP alias (can be null)version - the version of the old policyCopyright © 2017. All Rights Reserved.