public final class PasswordCredential extends Object implements Serializable
Constructor and Description |
---|
PasswordCredential(String userName,
char[] password)
Constructor, creates a new password credential
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
ManagedConnectionFactory |
getManagedConnectionFactory()
Get the managed connection factory associated with this username password
pair.
|
char[] |
getPassword()
Returns the password
|
String |
getUserName()
Returns the username
|
int |
hashCode() |
void |
setManagedConnectionFactory(ManagedConnectionFactory mcf)
Set the managed connection factory associated with this username password
pair.
|
public PasswordCredential(String userName, char[] password)
userName
- the user namepassword
- the passwordpublic String getUserName()
public char[] getPassword()
public ManagedConnectionFactory getManagedConnectionFactory()
public void setManagedConnectionFactory(ManagedConnectionFactory mcf)
mcf
- the managed connection factoryCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.