javax.resource.spi.security
Class PasswordCredential

java.lang.Object
  extended byjavax.resource.spi.security.PasswordCredential
All Implemented Interfaces:
java.io.Serializable

public final class PasswordCredential
extends java.lang.Object
implements java.io.Serializable

The class PasswordCredential is a placeholder for username and password.

See Also:
Serialized Form

Constructor Summary
PasswordCredential(java.lang.String userName, char[] password)
          Constructor, creates a new password credential
 
Method Summary
 boolean equals(java.lang.Object other)
           
 ManagedConnectionFactory (src) getManagedConnectionFactory()
          Get the managed connection factory associated with this username password pair.
 char[] getPassword()
          Returns the password
 java.lang.String getUserName()
          Returns the username
 int hashCode()
           
 void setManagedConnectionFactory(ManagedConnectionFactory (src)  mcf)
          Set the managed connection factory associated with this username password pair.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordCredential

public PasswordCredential(java.lang.String userName,
                          char[] password)
Constructor, creates a new password credential

Parameters:
userName - the user name
password - the password
Method Detail

getUserName

public java.lang.String getUserName()
Returns the username

Returns:
Username

getPassword

public char[] getPassword()
Returns the password

Returns:
password

getManagedConnectionFactory

public ManagedConnectionFactory (src)  getManagedConnectionFactory()
Get the managed connection factory associated with this username password pair.

Returns:
the managed connection factory

setManagedConnectionFactory

public void setManagedConnectionFactory(ManagedConnectionFactory (src)  mcf)
Set the managed connection factory associated with this username password pair.

Parameters:
mcf - the managed connection factory

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()