IIC349Policy.xml 1.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" 
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
		PolicyId="urn:oasis:names:tc:xacml:2.0:conformance-test:IIC349:policy" 
		RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:deny-overrides" 
		Version="1.0" 
		>
    <Description>
        Policy for Conformance Test IIC349.
        Purpose - Function Evaluation - Set Functions: yearMonthDuration-set-equals
    </Description>
    <Target/>
    <Rule Effect="Permit" RuleId="urn:oasis:names:tc:xacml:2.0:conformance-test:IIC349:rule">
        <Condition>
		  <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-set-equals">
            <Apply FunctionId="urn:oasis:names:tc:xacml:3.0:function:yearMonthDuration-bag">
                <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#yearMonthDuration">P5Y7M</AttributeValue>
                <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#yearMonthDuration">P1Y</AttributeValue>
            </Apply>
            <AttributeDesignator AttributeId="urn:oasis:names:tc:xacml:2.0:conformance-test:test-attr" 
            	Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" 
            	DataType="http://www.w3.org/2001/XMLSchema#yearMonthDuration" 
            	MustBePresent="false"/>
		  </Apply>
        </Condition>
    </Rule>
</Policy>