Guo Ruijing | 073cc18 | 2017-07-31 08:47:35 +0000 | [diff] [blame] | 1 | <?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:com:xacml:policy:id:0b67998b-57e2-4e25-9ea9-f9154bf18df1" Version="1" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-overrides"> |
| 3 | <Description>SampleTest1206@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">com.Config_SampleTest1206.1.xml</AttributeValue> |
| 9 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="PolicyName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 10 | </Match> |
| 11 | </AllOf> |
| 12 | <AllOf> |
| 13 | <Match MatchId="org.onap.function.regex-match"> |
| 14 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">success</AttributeValue> |
| 15 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="ONAPName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 16 | </Match> |
| 17 | <Match MatchId="org.onap.function.regex-match"> |
| 18 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">PROD</AttributeValue> |
| 19 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskType" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 20 | </Match> |
| 21 | <Match MatchId="org.onap.function.regex-match"> |
| 22 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue> |
| 23 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="RiskLevel" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 24 | </Match> |
| 25 | <Match MatchId="org.onap.function.regex-match"> |
| 26 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue> |
| 27 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="guard" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 28 | </Match> |
| 29 | <Match MatchId="org.onap.function.regex-match"> |
| 30 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">08-06-2017</AttributeValue> |
| 31 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="TTLDate" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 32 | </Match> |
| 33 | <Match MatchId="org.onap.function.regex-match"> |
| 34 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SampleTest1206</AttributeValue> |
| 35 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="ConfigName" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 36 | </Match> |
| 37 | </AllOf> |
| 38 | </AnyOf> |
| 39 | </Target> |
| 40 | <Rule RuleId="urn:com:xacml:rule:id:7e46d503-af54-4ea5-a86c-9eb6dd1f4f43" Effect="Permit"> |
| 41 | <Target> |
| 42 | <AnyOf> |
| 43 | <AllOf> |
| 44 | <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"> |
| 45 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">ACCESS</AttributeValue> |
| 46 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 47 | </Match> |
| 48 | <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case"> |
| 49 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Config</AttributeValue> |
| 50 | <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/> |
| 51 | </Match> |
| 52 | </AllOf> |
| 53 | </AnyOf> |
| 54 | </Target> |
| 55 | <AdviceExpressions> |
| 56 | <AdviceExpression AdviceId="configID" AppliesTo="Permit"> |
| 57 | <AttributeAssignmentExpression AttributeId="type" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 58 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Configuration</AttributeValue> |
| 59 | </AttributeAssignmentExpression> |
| 60 | <AttributeAssignmentExpression AttributeId="URLID" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 61 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">$URL/Config/com.Config_SampleTest1206.1.txt</AttributeValue> |
| 62 | </AttributeAssignmentExpression> |
| 63 | <AttributeAssignmentExpression AttributeId="PolicyName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 64 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">com.Config_SampleTest1206.1.xml</AttributeValue> |
| 65 | </AttributeAssignmentExpression> |
| 66 | <AttributeAssignmentExpression AttributeId="VersionNumber" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 67 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue> |
| 68 | </AttributeAssignmentExpression> |
| 69 | <AttributeAssignmentExpression AttributeId="matching:ONAPName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 70 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">success</AttributeValue> |
| 71 | </AttributeAssignmentExpression> |
| 72 | <AttributeAssignmentExpression AttributeId="matching:ConfigName" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 73 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">SampleTest1206</AttributeValue> |
| 74 | </AttributeAssignmentExpression> |
| 75 | <AttributeAssignmentExpression AttributeId="RiskType" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 76 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">PROD</AttributeValue> |
| 77 | </AttributeAssignmentExpression> |
| 78 | <AttributeAssignmentExpression AttributeId="RiskLevel" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 79 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">1</AttributeValue> |
| 80 | </AttributeAssignmentExpression> |
| 81 | <AttributeAssignmentExpression AttributeId="guard" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 82 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">True</AttributeValue> |
| 83 | </AttributeAssignmentExpression> |
| 84 | <AttributeAssignmentExpression AttributeId="TTLDate" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" Issuer=""> |
| 85 | <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">08-06-2017</AttributeValue> |
| 86 | </AttributeAssignmentExpression> |
| 87 | </AdviceExpression> |
| 88 | </AdviceExpressions> |
| 89 | </Rule> |
| 90 | </Policy> |