blob: a3b483f740ca81c5f928c3390044742608effb7d [file] [log] [blame]
Guo Ruijing073cc182017-07-31 08:47:35 +00001<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="urn:xacml:policy:id:b8e180de-3dcc-4b5b-814d-925e674e573c" Version="1" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides">
3 <Description>TestActionPolicy@CreatedBy:test@CreatedBy:@ModifiedBy:test@ModifiedBy:</Description>
4 <Target>
5 <AnyOf>
6 <AllOf>
7 <Match MatchId="org.onap.function.regex-match">
8 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">12</AttributeValue>
9 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="SamplTest" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
10 </Match>
11 </AllOf>
12 </AnyOf>
13 </Target>
14 <Rule RuleId="" Effect="Permit">
15 <Target/>
16 <Condition>
17 <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:and">
18 <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
19 <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-one-and-only">
20 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="SamplTest" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
21 </Apply>
22 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">test</AttributeValue>
23 </Apply>
24 <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
25 <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-one-and-only">
26 <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="SamplTest" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
27 </Apply>
28 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Sample</AttributeValue>
29 </Apply>
30 </Apply>
31 </Condition>
32 <ObligationExpressions>
33 <ObligationExpression ObligationId="Test" FulfillOn="Permit">
34 <AttributeAssignmentExpression AttributeId="performer" Category="urn:oasis:names:tc:xacml:1.0:subject-category:recipient-subject">
35 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">PEPAction</AttributeValue>
36 </AttributeAssignmentExpression>
37 <AttributeAssignmentExpression AttributeId="type" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource">
38 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">REST</AttributeValue>
39 </AttributeAssignmentExpression>
40 <AttributeAssignmentExpression AttributeId="url" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource">
41 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">http://localhost.com</AttributeValue>
42 </AttributeAssignmentExpression>
43 <AttributeAssignmentExpression AttributeId="method" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource">
44 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">GET</AttributeValue>
45 </AttributeAssignmentExpression>
46 <AttributeAssignmentExpression AttributeId="body" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource">
47 <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">$URL/Action/com.Action_TestActionPolicy.1.xml.json</AttributeValue>
48 </AttributeAssignmentExpression>
49 </ObligationExpression>
50 </ObligationExpressions>
51 </Rule>
52 </Policy>