| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.resource.spi.security.PasswordCredential
public final class PasswordCredential
The class PasswordCredential acts as a holder for username and password.
ManagedConnectionFactory, 
Serialized Form| Constructor Summary | |
|---|---|
PasswordCredential(java.lang.String userName,
                   char[] password)
Creates a new PasswordCredential object from the given
 user name and password. | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(java.lang.Object other)
Compares this PasswordCredential with the specified object for equality.  | 
 ManagedConnectionFactory | 
getManagedConnectionFactory()
Gets the target ManagedConnectionFactory for which the user name and password has been set by the application server.  | 
 char[] | 
getPassword()
Returns the user password.  | 
 java.lang.String | 
getUserName()
Returns the user name.  | 
 int | 
hashCode()
Returns the hash code for this PasswordCredential  | 
 void | 
setManagedConnectionFactory(ManagedConnectionFactory mcf)
Sets the target ManagedConenctionFactory instance for which the user name and password has been set by the application server.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PasswordCredential(java.lang.String userName,
                          char[] password)
PasswordCredential object from the given
 user name and password.
  Note that the given user password is cloned before it is stored in
 the new PasswordCredential object.
userName - the user namepassword - the user's password| Method Detail | 
|---|
public java.lang.String getUserName()
public char[] getPassword()
Note that this method returns a reference to the password. It is the caller's responsibility to zero out the password information after it is no longer needed.
public ManagedConnectionFactory getManagedConnectionFactory()
public void setManagedConnectionFactory(ManagedConnectionFactory mcf)
mcf - ManagedConnectionFactory instance for which user name
                   and password have been specifiedpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - Object to which PasswordCredential is to be compared
public int hashCode()
hashCode in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41