org.jboss.security.xacml.sunxacml.ctx
Class Subject

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.ctx.Subject

public class Subject
extends Object

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

Since:
1.1
Author:
seth proctor

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.