I'm trying to do a check in a XACML policy. I have a long in my subject (urn:ch:xxxx:attribute:subject:1.0:participantid) context which i wish to find in a list of longs (urn:ch:xxxx:attribute:resource:1.0:participantids) in my resource context. I'm trying to do that with the function integer-is-in.
I've tried so far:
<Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:integer-is-in">
<SubjectAttributeDesignator AttributeId="urn:ch:xxxx:attribute:subject:1.0:participantid" DataType="http://www.w3.org/2001/XMLSchema#long" />
<ResourceAttributeDesignator AttributeId="urn:ch:xxxx:attribute:resource:1.0:participantids" DataType="http://www.w3.org/2001/XMLSchema#long" />
</Apply>
I've tested this and it worked well.
<Apply FunctionId="urn:oasis:names:tc:xacml:1.0:function:integer-is-in">
<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#long">9000501</AttributeValue>
<ResourceAttributeDesignator AttributeId="urn:ch:xxxx:attribute:resource:1.0:participantids" DataType="http://www.w3.org/2001/XMLSchema#long" />
</Apply>
So how should I pass the subject attribute so that it works? Or is the function integer-is-in the wrong way?
Regards
Cristiano