SunTM's XACML Implementation for JavaTM

com.sun.xacml.ctx
Class Subject

java.lang.Object
  extended bycom.sun.xacml.ctx.Subject

public class Subject
extends Object

This class represents the collection of Attributes associated with a particular subject.

Since:
1.1

Field Summary
static URI DEFAULT_CATEGORY
          URI form of the default subject category
 
Constructor Summary
Subject(Set attributes)
          Creates a new collection of subject attributes using the default subject cateorgy.
Subject(URI category, Set attributes)
          Creates a new collection of subject attributes using the given subject category.
 
Method Summary
 Set getAttributes()
          Returns the Attributes associated with this subject.
 URI getCategory()
          Returns the category of this subject's attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CATEGORY

public static final URI DEFAULT_CATEGORY
URI form of the default subject category

Constructor Detail

Subject

public Subject(Set attributes)
Creates a new collection of subject attributes using the default subject cateorgy.

Parameters:
attributes - a non-null Set of Attribute objects

Subject

public Subject(URI category,
               Set attributes)
Creates a new collection of subject attributes using the given subject category.

Parameters:
category - the subject category or null for the default category
attributes - a non-null Set of Attribute objects
Method Detail

getCategory

public URI getCategory()
Returns the category of this subject's attributes.

Returns:
the category

getAttributes

public Set getAttributes()
Returns the Attributes associated with this subject.

Returns:
the immutable Set of Attributes

Sun's XACML Implementation Version 1.2

Copyright 2003-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.