tyrex.security.container
Class ResourceCredentials

java.lang.Object
  extended bytyrex.security.container.ResourceCredentials
All Implemented Interfaces:
javax.security.auth.Destroyable

public final class ResourceCredentials
extends java.lang.Object
implements javax.security.auth.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(java.lang.String resName, java.lang.String name, char[] password)
          Constructs a new credential with the given name and password.
 
Method Summary
 void destroy()
          Destroy the credentials.
 java.lang.String getName()
          Returns the name.
 char[] getPassword()
          Returns the password.
 java.lang.String getResourceName()
          Returns the resource name.
 boolean isDestroyed()
          Returns true if these credentials have been destroyed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceCredentials

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

Parameters:
resName - The resource name
password - The password, null if unkonwn
Method Detail

getName

public java.lang.String getName()
Returns the name.

Returns:
The name

getResourceName

public java.lang.String getResourceName()
Returns the resource name.

Returns:
The resource name

getPassword

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

Returns:
The password

destroy

public void destroy()
Destroy the credentials.

Specified by:
destroy in interface javax.security.auth.Destroyable

isDestroyed

public boolean isDestroyed()
Returns true if these credentials have been destroyed.

Specified by:
isDestroyed in interface javax.security.auth.Destroyable


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.