tyrex.security
public final class NamePasswordCredentials extends Object implements Destroyable
The password is stored as an array of characters to prevent string interning and allow it to be destroyed. Name/password credentials are considered private.
Version: $Revision: 1.4 $ $Date: 2001/03/12 19:20:18 $
Constructor Summary | |
---|---|
NamePasswordCredentials(String name, char[] password, String realm)
Constructs a new credential with the given name and password.
|
Method Summary | |
---|---|
void | destroy()
Destroy the credentials. |
String | getName()
Returns the name.
|
char[] | getPassword()
Returns the password. |
String | getRealm()
Returns the realm.
|
boolean | isDestroyed()
Returns true if these credentials have been destroyed. |
Parameters: user The name password The password, null if unkonwn realm The realm, null if unknown
Returns: The name
Returns: The password
Returns: The realm