站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 j2ee API Documentation 英文版文档

PasswordCredential (JBoss J2EE API) - JBoss 3.2.7 j2ee API Documentation 英文版文档


javax.resource.spi.security
Class PasswordCredential

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

public class PasswordCredential
extends Object
implements Serializable

The class PasswordCredential is a placeholder for username and password.

See Also:
Serialized Form

Constructor Summary
PasswordCredential(String userName, char[] password)
          Constructor, creates a new password credential
 
Method Summary
 boolean equals(Object other)
          Tests object for equality
 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()
          Generates a hashCode for this object, the username should be good enough to get a good distribution
 void setManagedConnectionFactory(ManagedConnectionFactory 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(String userName,
                          char[] password)
Constructor, creates a new password credential

Method Detail

getUserName

public String getUserName()
Returns the username

Returns:
Username

getPassword

public char[] getPassword()
Returns the password

Returns:
password

getManagedConnectionFactory

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


setManagedConnectionFactory

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


equals

public boolean equals(Object other)
Tests object for equality


hashCode

public int hashCode()
Generates a hashCode for this object, the username should be good enough to get a good distribution



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.