org.apache.geronimo.security.jaas
Class UsernamePasswordCredential
java.lang.Object
  
org.apache.geronimo.security.jaas.UsernamePasswordCredential
- All Implemented Interfaces: 
 - Serializable, Destroyable, Refreshable
 
- Direct Known Subclasses: 
 - NamedUsernamePasswordCredential
 
public class UsernamePasswordCredential
- extends Object
- implements Destroyable, Refreshable, Serializable
  
A username/password credential.  Used to store the username/password in the
 Subject's private credentials.
- See Also:
 - Serialized Form
 
 
 
 
UsernamePasswordCredential
public UsernamePasswordCredential(String username,
                                  char[] password)
getUsername
public String getUsername()
 
 
getPassword
public char[] getPassword()
 
 
destroy
public void destroy()
             throws DestroyFailedException
- Specified by:
 destroy in interface Destroyable
 
- Throws:
 DestroyFailedException
 
isDestroyed
public boolean isDestroyed()
- Specified by:
 isDestroyed in interface Destroyable
 
 
refresh
public void refresh()
             throws RefreshFailedException
- Specified by:
 refresh in interface Refreshable
 
- Throws:
 RefreshFailedException
 
isCurrent
public boolean isCurrent()
- Specified by:
 isCurrent in interface Refreshable
 
 
equals
public boolean equals(Object o)
- Overrides:
 equals in class Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class Object
 
 
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.