Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
Jim Hahn | daee922 | 2018-04-19 11:28:41 -0400 | [diff] [blame^] | 2 | <!-- |
| 3 | ============LICENSE_START================================================== |
| 4 | ONAP Policy Engine |
| 5 | =========================================================================== |
| 6 | Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. |
| 7 | =========================================================================== |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END==================================================== |
| 20 | --> |
Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 21 | <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"> |
| 22 | <Description>TestActionPolicy@CreatedBy:test@CreatedBy:@ModifiedBy:test@ModifiedBy:</Description> |
| 23 | <Target> |
| 24 | <AnyOf> |
| 25 | <AllOf> |
| 26 | <Match MatchId="org.onap.function.regex-match"> |
| 27 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">12</AttributeValue> |
| 28 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="SamplTest" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 29 | </Match> |
| 30 | </AllOf> |
| 31 | </AnyOf> |
| 32 | </Target> |
| 33 | <Rule RuleId="" Effect="Permit"> |
| 34 | <Target/> |
| 35 | <Condition> |
| 36 | <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:and"> |
| 37 | <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"> |
| 38 | <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"> |
| 39 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="SamplTest" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 40 | </Apply> |
| 41 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">test</AttributeValue> |
| 42 | </Apply> |
| 43 | <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"> |
| 44 | <Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:string-one-and-only"> |
| 45 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="SamplTest" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 46 | </Apply> |
| 47 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Sample</AttributeValue> |
| 48 | </Apply> |
| 49 | </Apply> |
| 50 | </Condition> |
| 51 | <ObligationExpressions> |
| 52 | <ObligationExpression ObligationId="Test" FulfillOn="Permit"> |
| 53 | <AttributeAssignmentExpression AttributeId="performer" Category="urn:oasis:names:tc:xacml:1.0:subject-category:recipient-subject"> |
| 54 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">PEPAction</AttributeValue> |
| 55 | </AttributeAssignmentExpression> |
| 56 | <AttributeAssignmentExpression AttributeId="type" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource"> |
| 57 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">REST</AttributeValue> |
| 58 | </AttributeAssignmentExpression> |
| 59 | <AttributeAssignmentExpression AttributeId="url" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource"> |
| 60 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">http://localhost.com</AttributeValue> |
| 61 | </AttributeAssignmentExpression> |
| 62 | <AttributeAssignmentExpression AttributeId="method" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource"> |
| 63 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">GET</AttributeValue> |
| 64 | </AttributeAssignmentExpression> |
| 65 | <AttributeAssignmentExpression AttributeId="body" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource"> |
| 66 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">$URL/Action/com.Action_TestActionPolicy.1.xml.json</AttributeValue> |
| 67 | </AttributeAssignmentExpression> |
| 68 | </ObligationExpression> |
| 69 | </ObligationExpressions> |
| 70 | </Rule> |
| 71 | </Policy> |