tyrex.security.container
public final class ResourceCredentials extends Object implements Destroyable
The password is stored as an array of characters to prevent string interning and allow it to be destroyed. Resource credentials are considered private.
Version: $Revision: 1.4 $ $Date: 2001/03/12 19:20:18 $
Constructor Summary | |
---|---|
ResourceCredentials(String resName, String name, char[] password)
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 | getResourceName()
Returns the resource name.
|
boolean | isDestroyed()
Returns true if these credentials have been destroyed. |
Parameters: resName The resource name user The name password The password, null if unkonwn
Returns: The name
Returns: The password
Returns: The resource name