Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml
In directory sc8-pr-cvs1:/tmp/cvs-serv6049/com/sun/xacml
Modified Files:
EvaluationCtx.java
Log Message:
Added new Subject interface for RequestCtx and fixed Attribute encoding bug
Index: EvaluationCtx.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/EvaluationCtx.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** EvaluationCtx.java 16 Jun 2003 19:17:54 -0000 1.2
--- EvaluationCtx.java 22 Jul 2003 15:05:45 -0000 1.3
***************
*** 47,50 ****
--- 47,51 ----
import com.sun.xacml.ctx.RequestCtx;
import com.sun.xacml.ctx.Status;
+ import com.sun.xacml.ctx.Subject;
import com.sun.xacml.finder.AttributeFinder;
***************
*** 185,191 ****
Iterator it = subjects.iterator();
while (it.hasNext()) {
! List list = (List)(it.next());
! URI category = (URI)(list.get(0));
Map categoryMap = null;
--- 186,192 ----
Iterator it = subjects.iterator();
while (it.hasNext()) {
! Subject subject = (Subject)(it.next());
! URI category = subject.getCategory();
Map categoryMap = null;
***************
*** 199,203 ****
// iterate over the set of attributes
! Iterator attrIterator = ((Set)(list.get(1))).iterator();
while (attrIterator.hasNext()) {
--- 200,204 ----
// iterate over the set of attributes
! Iterator attrIterator = subject.getAttributes().iterator();
while (attrIterator.hasNext()) {
|