[jboss-cvs] JBossAS SVN: r63886 - in projects/security/security-xacml/trunk/jboss-xacml/src/resources: test and 3 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jul 6 17:57:18 EDT 2007
Author: anil.saldhana at jboss.com
Date: 2007-07-06 17:57:18 -0400 (Fri, 06 Jul 2007)
New Revision: 63886
Added:
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase1-request.xml
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase2-request.xml
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase3-request.xml
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase4-request.xml
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase5-request.xml
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase6-request.xml
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase7-request.xml
Modified:
projects/security/security-xacml/trunk/jboss-xacml/src/resources/schema/jbossxacml-2.0.xsd
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/basicPolicySetConfig.xml
projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/interopPolicySetConfig.xml
Log:
SECURITY-60:xacml spi test resources
Modified: projects/security/security-xacml/trunk/jboss-xacml/src/resources/schema/jbossxacml-2.0.xsd
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/schema/jbossxacml-2.0.xsd 2007-07-06 21:56:34 UTC (rev 63885)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/schema/jbossxacml-2.0.xsd 2007-07-06 21:57:18 UTC (rev 63886)
@@ -35,7 +35,7 @@
<xs:element name="Locators" type="ns:LocatorsType"/>
<xs:complexType name="LocatorsType">
<xs:sequence>
- <xs:element name="Locator" type="ns:LocatorType" minOccurs="0"/>
+ <xs:element name="Locator" type="ns:LocatorType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
@@ -50,7 +50,7 @@
<xs:complexType name="LocatorType">
<xs:sequence>
- <xs:element ref="ns:Option" minOccurs="0"/>
+ <xs:element ref="ns:Option" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Name" type="xs:string"/>
</xs:complexType>
Modified: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/basicPolicySetConfig.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/basicPolicySetConfig.xml 2007-07-06 21:56:34 UTC (rev 63885)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/basicPolicySetConfig.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -1,12 +1,11 @@
<ns:jbosspdp xmlns:ns="urn:jboss:xacml:2.0">
<ns:Policies>
<ns:PolicySet>
- <ns:Location>file://SomeLocation</ns:Location>
+ <ns:Location>test/policies/interop/xacml-policySet</ns:Location>
</ns:PolicySet>
</ns:Policies>
<ns:Locators>
- <ns:Locator Name="org.jboss.test.security.xacml.MyLocator">
- <ns:Option Name="option1">1</ns:Option>
+ <ns:Locator Name="org.jboss.test.security.xacml.JBossPolicySetLocator">
</ns:Locator>
</ns:Locators>
</ns:jbosspdp>
\ No newline at end of file
Modified: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/interopPolicySetConfig.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/interopPolicySetConfig.xml 2007-07-06 21:56:34 UTC (rev 63885)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/config/interopPolicySetConfig.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -2,11 +2,25 @@
<ns:Policies>
<ns:PolicySet>
<ns:Location>test/policies/interop/xacml-policySet.xml</ns:Location>
+ <ns:Policy>
+ <ns:Location>test/policies/interop/xacml-policy2.xml</ns:Location>
+ </ns:Policy>
+
+ <ns:Policy>
+ <ns:Location>test/policies/interop/xacml-policy3.xml</ns:Location>
+ </ns:Policy>
+ <ns:Policy>
+ <ns:Location>test/policies/interop/xacml-policy4.xml</ns:Location>
+ </ns:Policy>
+
+ <ns:Policy>
+ <ns:Location>test/policies/interop/xacml-policy5.xml</ns:Location>
+ </ns:Policy>
+
</ns:PolicySet>
</ns:Policies>
<ns:Locators>
- <ns:Locator Name="org.jboss.test.security.xacml.MyLocator">
- <ns:Option Name="option1">1</ns:Option>
+ <ns:Locator Name="org.jboss.security.xacml.locators.JBossPolicySetLocator">
</ns:Locator>
</ns:Locators>
</ns:jbosspdp>
\ No newline at end of file
Added: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase1-request.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase1-request.xml (rev 0)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase1-request.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xacml-context:Request
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ 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
+ http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd">
+ <Subject
+ SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:user-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-num-shares"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-offer-price"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>10</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-credit-ext-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-trade-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ </Subject>
+ <Resource>
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>CustomerAccount</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:account-status"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>Active</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:credit-line"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>15000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:current-credit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:trade-limit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</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>Buy</AttributeValue>
+ </Attribute>
+ </Action>
+ <Environment/>
+</xacml-context:Request>
\ No newline at end of file
Added: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase2-request.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase2-request.xml (rev 0)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase2-request.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xacml-context:Request
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ 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
+ http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd">
+ <Subject
+ SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:user-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-num-shares"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-offer-price"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-credit-ext-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-trade-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ </Subject>
+ <Resource>
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>CustomerAccount</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:account-status"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>Active</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:credit-line"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>15000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:current-credit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:trade-limit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</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>Buy</AttributeValue>
+ </Attribute>
+ </Action>
+ <Environment/>
+</xacml-context:Request>
\ No newline at end of file
Added: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase3-request.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase3-request.xml (rev 0)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase3-request.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xacml-context:Request
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ 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
+ http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd">
+ <Subject
+ SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:user-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-num-shares"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-offer-price"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>5</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-credit-ext-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-trade-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>true</AttributeValue>
+ </Attribute>
+ </Subject>
+ <Resource>
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>CustomerAccount</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:account-status"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>Active</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:credit-line"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>15000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:current-credit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:trade-limit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</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>Buy</AttributeValue>
+ </Attribute>
+ </Action>
+ <Environment/>
+</xacml-context:Request>
\ No newline at end of file
Added: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase4-request.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase4-request.xml (rev 0)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase4-request.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xacml-context:Request
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ 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
+ http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd">
+ <Subject
+ SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:user-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-num-shares"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-offer-price"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>9</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-credit-ext-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-trade-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>true</AttributeValue>
+ </Attribute>
+ </Subject>
+ <Resource>
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>CustomerAccount</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:account-status"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>Active</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:credit-line"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>15000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:current-credit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:trade-limit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</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>Buy</AttributeValue>
+ </Attribute>
+ </Action>
+ <Environment/>
+</xacml-context:Request>
\ No newline at end of file
Added: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase5-request.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase5-request.xml (rev 0)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase5-request.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xacml-context:Request
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ 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
+ http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd">
+ <Subject
+ SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:user-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-num-shares"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-offer-price"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>10</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-credit-ext-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-trade-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>true</AttributeValue>
+ </Attribute>
+ </Subject>
+ <Resource>
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>CustomerAccount</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:account-status"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>Active</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:credit-line"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>15000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:current-credit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:trade-limit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</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>Buy</AttributeValue>
+ </Attribute>
+ </Action>
+ <Environment/>
+</xacml-context:Request>
\ No newline at end of file
Added: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase6-request.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase6-request.xml (rev 0)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase6-request.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xacml-context:Request
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ 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
+ http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd">
+ <Subject
+ SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:user-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-num-shares"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-offer-price"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>15</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-credit-ext-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>false</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-trade-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>true</AttributeValue>
+ </Attribute>
+ </Subject>
+ <Resource>
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>CustomerAccount</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:account-status"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>Active</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:credit-line"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>15000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:current-credit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:trade-limit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</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>Buy</AttributeValue>
+ </Attribute>
+ </Action>
+ <Environment/>
+</xacml-context:Request>
\ No newline at end of file
Added: projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase7-request.xml
===================================================================
--- projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase7-request.xml (rev 0)
+++ projects/security/security-xacml/trunk/jboss-xacml/src/resources/test/requests/interop/scenario2-testcase7-request.xml 2007-07-06 21:57:18 UTC (rev 63886)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xacml-context:Request
+ xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os"
+ 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
+ http://docs.oasis-open.org/xacml/access_control-xacml-2.0-context-schema-os.xsd">
+ <Subject
+ SubjectCategory="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject">
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:user-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-num-shares"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>1000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:buy-offer-price"
+ DataType="http://www.w3.org/2001/XMLSchema#integer"
+ Issuer="xacml20.interop.com">
+ <AttributeValue>10</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-credit-ext-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>true</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:subject:req-trade-approval"
+ DataType="http://www.w3.org/2001/XMLSchema#string" Issuer="xacml20.interop.com">
+ <AttributeValue>true</AttributeValue>
+ </Attribute>
+ </Subject>
+ <Resource>
+ <Attribute AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>CustomerAccount</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-id"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>123456</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:owner-name"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>John Smith</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:account-status"
+ DataType="http://www.w3.org/2001/XMLSchema#string">
+ <AttributeValue>Active</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:credit-line"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>15000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:current-credit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</AttributeValue>
+ </Attribute>
+ <Attribute AttributeId="urn:xacml:2.0:interop:example:resource:trade-limit"
+ DataType="http://www.w3.org/2001/XMLSchema#integer">
+ <AttributeValue>10000</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>Buy</AttributeValue>
+ </Attribute>
+ </Action>
+ <Environment/>
+</xacml-context:Request>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list