[jboss-cvs] JBossAS SVN: r71263 - projects/security/security-xacml/trunk/jboss-sunxacml/src/main/java/org/jboss/security/xacml/sunxacml/ctx.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 25 15:30:23 EDT 2008


Author: anil.saldhana at jboss.com
Date: 2008-03-25 15:30:23 -0400 (Tue, 25 Mar 2008)
New Revision: 71263

Modified:
   projects/security/security-xacml/trunk/jboss-sunxacml/src/main/java/org/jboss/security/xacml/sunxacml/ctx/Attribute.java
Log:
SECURITY-157: support multiple values in attribute

Modified: projects/security/security-xacml/trunk/jboss-sunxacml/src/main/java/org/jboss/security/xacml/sunxacml/ctx/Attribute.java
===================================================================
--- projects/security/security-xacml/trunk/jboss-sunxacml/src/main/java/org/jboss/security/xacml/sunxacml/ctx/Attribute.java	2008-03-25 19:25:45 UTC (rev 71262)
+++ projects/security/security-xacml/trunk/jboss-sunxacml/src/main/java/org/jboss/security/xacml/sunxacml/ctx/Attribute.java	2008-03-25 19:30:23 UTC (rev 71263)
@@ -100,10 +100,11 @@
       this.attributeValues.add(value); 
    }
 
-   public Attribute(URI id, String issuer, DateTimeAttribute issueInstant,
+   public Attribute(URI id, URI type, String issuer, DateTimeAttribute issueInstant,
          Set<AttributeValue> values) 
    {
       this.id = id;
+      this.type = type;
       this.issuer = issuer;
       this.issueInstant = issueInstant;
       this.attributeValues = values; 
@@ -222,7 +223,7 @@
       if (value == null)
          throw new ParsingException("Attribute must contain a value");
 
-      return new Attribute(id,  issuer, issueInstant, valueSet);
+      return new Attribute(id, type, issuer, issueInstant, valueSet);
    }
 
    /**




More information about the jboss-cvs-commits mailing list