org.gridlab.gat.security
Class PasswordSecurityContext

java.lang.Object
  extended by org.gridlab.gat.security.SecurityContext
      extended by org.gridlab.gat.security.PasswordSecurityContext
All Implemented Interfaces:
Cloneable

public class PasswordSecurityContext
extends SecurityContext

A security context based upon user name, password combination.


Constructor Summary
PasswordSecurityContext(String username, String password)
          Constructs a PasswordSecurityContext with the given username and password.
 
Method Summary
 Object clone()
          Returns a clone of this context.
 boolean equals(Object obj)
          Check two SecurityContexts for equality.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.gridlab.gat.security.SecurityContext
addNote, containsNoteKey, getDataObject, getNoteValue, getPassword, getUsername, isValidFor, putDataObject, removeDataObject, setPassword, setUsername
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PasswordSecurityContext

public PasswordSecurityContext(String username,
                               String password)
Constructs a PasswordSecurityContext with the given username and password.

Parameters:
username - the username
password - the password for the given username
Method Detail

equals

public boolean equals(Object obj)
Check two SecurityContexts for equality.

Specified by:
equals in class SecurityContext
Parameters:
obj - the object to compare this with
Returns:
true if the objects are semantically equal

clone

public Object clone()
             throws CloneNotSupportedException
Returns a clone of this context.

Specified by:
clone in class SecurityContext
Returns:
the clone of this security context
Throws:
CloneNotSupportedException

hashCode

public int hashCode()
Specified by:
hashCode in class SecurityContext

toString

public String toString()
Overrides:
toString in class Object