From: Anil S. <ani...@jb...> - 2006-05-30 21:29:38
|
User: asaldhana Date: 06/05/30 17:29:35 Added: src/resources/security/xacml/test11 policy.xml request.xml response.xml Log: JBAS-2673: Test Drive the Sun's OSS XACML Implementation. Revision Changes Path 1.1 date: 2006/05/30 21:29:35; author: asaldhana; state: Exp;jbosstest/src/resources/security/xacml/test11/policy.xml Index: policy.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <Policy xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xacml:2.0:policy:schema:os access_control-xacml-2.0-policy-schema-os.xsd" PolicyId="urn:oasis:names:tc:xacml:2.0:jboss-test:XI:policy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:deny-overrides"> <Description> Any Subject can perform any action on any resource. </Description> <Target/> <Rule RuleId="urn:oasis:names:tc:xacml:2.0:jboss-test:XI:rule" Effect="Permit"> <Description> Always return Permit. </Description> </Rule> </Policy> 1.1 date: 2006/05/30 21:29:35; author: asaldhana; state: Exp;jbosstest/src/resources/security/xacml/test11/request.xml Index: request.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <Request xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xacml:2.0:context:schema:os access_control-xacml-2.0-context-schema-os.xsd"> <Subject> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" DataType="http://www.w3.org/2001/XMLSchema#string"> <AttributeValue>Anil Saldhana</AttributeValue> </Attribute> </Subject> <Resource> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#anyURI"> <AttributeValue>http://jboss.com/developmentreports/</AttributeValue> </Attribute> </Resource> <Action> <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string"> <AttributeValue>read</AttributeValue> </Attribute> </Action> <Environment/> </Request> 1.1 date: 2006/05/30 21:29:35; author: asaldhana; state: Exp;jbosstest/src/resources/security/xacml/test11/response.xml Index: response.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <Response xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xacml:2.0:context:schema:os access_control-xacml-2.0-context-schema-os.xsd.xsd"> <Result> <Decision>Permit</Decision> <Status> <StatusCode Value="urn:oasis:names:tc:xacml:1.0:status:ok"/> </Status> </Result> </Response> |