|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PolicyAdder
This class provides the methods to add policies or simple rules to the Policy Manager
| 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 |
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 |
| Method Detail |
|---|
Status addNewRule(String alias,
Map<String,String> 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 policy
Status 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 format
Status 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 element
Status 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 format
Status 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 element
Status 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 format
Status 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 element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||