org.apache.geronimo.security.jaas
Class UsernamePasswordCredential

java.lang.Object
  extended by 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

Constructor Summary
UsernamePasswordCredential(String username, char[] password)
           
 
Method Summary
 void destroy()
           
 boolean equals(Object o)
           
 char[] getPassword()
           
 String getUsername()
           
 int hashCode()
           
 boolean isCurrent()
           
 boolean isDestroyed()
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernamePasswordCredential

public UsernamePasswordCredential(String username,
                                  char[] password)
Method Detail

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.