tyrex.security.container

Class ResourceCredentials

public final class ResourceCredentials extends Object implements Destroyable

Credentials for a resource manager authentication.

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 $

Author: Assaf Arkin

Constructor Summary
ResourceCredentials(String resName, String name, char[] password)
Constructs a new credential with the given name and password.
Method Summary
voiddestroy()
Destroy the credentials.
StringgetName()
Returns the name.
char[]getPassword()
Returns the password.
StringgetResourceName()
Returns the resource name.
booleanisDestroyed()
Returns true if these credentials have been destroyed.

Constructor Detail

ResourceCredentials

public ResourceCredentials(String resName, String name, char[] password)
Constructs a new credential with the given name and password.

Parameters: resName The resource name user The name password The password, null if unkonwn

Method Detail

destroy

public void destroy()
Destroy the credentials.

getName

public String getName()
Returns the name.

Returns: The name

getPassword

public char[] getPassword()
Returns the password. The password may be null.

Returns: The password

getResourceName

public String getResourceName()
Returns the resource name.

Returns: The resource name

isDestroyed

public boolean isDestroyed()
Returns true if these credentials have been destroyed.
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.