JBoss port of sunxacml 2.0.8.Final-redhat-1

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(List attributes)
          Creates a new collection of subject attributes using the default subject cateorgy.
Subject(Set attributes)
          Deprecated.  
Subject(URI category, List attributes)
          Creates a new collection of subject attributes using the given subject category.
Subject(URI category, Set attributes)
          Deprecated.  
 
Method Summary
 boolean equals(Object obj)
           
 Set getAttributes()
          Deprecated.  
 List getAttributesAsList()
          Returns the Attributes associated with this subject.
 URI getCategory()
          Returns the category of this subject's attributes.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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)
Deprecated. 

Creates a new collection of subject attributes using the default subject cateorgy.

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

Subject

public Subject(List 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)
Deprecated. 

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

Subject

public Subject(URI category,
               List 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()
Deprecated. 

Returns the Attributes associated with this subject.

Returns:
the immutable Set of Attributes

getAttributesAsList

public List getAttributesAsList()
Returns the Attributes associated with this subject.

Returns:
the immutable Set of Attributes

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

JBoss port of sunxacml 2.0.8.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.