org.glite.authz.common.model
Class Subject

java.lang.Object
  extended by org.glite.authz.common.model.Subject
All Implemented Interfaces:
java.io.Serializable

public final class Subject
extends java.lang.Object
implements java.io.Serializable

Attribute-based description of the subject of an authorization request.

See Also:
Serialized Form

Constructor Summary
Subject()
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.util.Set<Attribute> getAttributes()
          Gets the attributes that describe the subject.
 java.lang.String getCategory()
          Gets the category to which the subject belongs.
 int hashCode()
          
 void setCategory(java.lang.String newCategory)
          Sets the category to which the subject belongs.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Subject

public Subject()
Constructor.

Method Detail

getCategory

public java.lang.String getCategory()
Gets the category to which the subject belongs.

Returns:
category to which the subject belongs

setCategory

public void setCategory(java.lang.String newCategory)
Sets the category to which the subject belongs.

Parameters:
newCategory - category to which the subject belongs

getAttributes

public java.util.Set<Attribute> getAttributes()
Gets the attributes that describe the subject.

Returns:
attributes that describe the subject

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.