org.gridlab.gat.security
Class PasswordSecurityContext
java.lang.Object
org.gridlab.gat.security.SecurityContext
org.gridlab.gat.security.PasswordSecurityContext
- All Implemented Interfaces:
- Cloneable
public class PasswordSecurityContext
- extends SecurityContext
A security context based upon user name, password combination.
Methods inherited from class org.gridlab.gat.security.SecurityContext |
addNote, containsNoteKey, getDataObject, getNoteValue, getPassword, getUsername, isValidFor, putDataObject, removeDataObject, setPassword, setUsername |
PasswordSecurityContext
public PasswordSecurityContext(String username,
String password)
- Constructs a
PasswordSecurityContext
with the given
username
and password
.
- Parameters:
username
- the usernamepassword
- the password for the given username
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