[sunxacml-discuss] SubjectAttributeDesignator question
Brought to you by:
farrukh_najmi,
sethp
|
From: Lanz, D. <dl...@mi...> - 2006-01-24 22:08:44
|
How does one programmatically access the xml attributes of the SubjectAttributeDesignator element? The SubjectAttributeDesignator is a subelement of the SubjectMatch element in an xacml policy target, as shown in the policy fragment below: =20 <Target> <Subjects> <Subject> <SubjectMatch MatchId=3D"urn:oasis:names:tc:xacml:1.0:function:string-equal"> <AttributeValue=20 DataType=3Dhttp://www.w3.org/2001/XMLSchema#string >employee</AttributeValue> <SubjectAttributeDesignator=20 AttributeId=3D"group"=20 DataType=3D"http://www.w3.org/2001/XMLSchema#string"/> </SubjectMatch> </Subject> ... </Target> =20 The subject attribute value is available from an EvaluationCtx by calling (as an example): getSubjectAttribute(new URI(com.sun.xacml.attr.X500NameAttribute.identifier), new URI("urn:oasis:names:tc:xacml:1.0:subject:subject-id"), new URI("urn:oasis:names:tc:xacml:1.0:subject-category:access-subject")) But, it's not evident how to access the SubjectAttributeDesignator. Thanks, Dan Lanz |