|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.eng.rdlab.soa3.pm.connector.impl.PolicyAdderImpl
public class PolicyAdderImpl
Standard implementation of Policy Adder
| Constructor Summary | |
|---|---|
PolicyAdderImpl()
|
|
PolicyAdderImpl(String url)
|
|
| Method Summary | |
|---|---|
Status |
addNewRule(String alias,
Map<String,String> 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyAdderImpl()
public PolicyAdderImpl(String url)
| Method Detail |
|---|
public void setUrl(String url)
url -
public Status addNewRule(String alias,
Map<String,String> 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 policy
public 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 format
public 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 format
public 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 format
public 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 element
public 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 element
public Status updateXACMLPolicy(String alias,
int version,
Element policy)
updateXACMLPolicy in interface PolicyAdderalias - the PAP alias (can be null)version - the version of the old policy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||