javax.resource.spi.ManagedConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
| private ManagedConnectionFactory | |
| private char[] | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | PasswordCredential(String
the user name userName, char[] the user's password password)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if and if the specified object is a PasswordCredential whose username and password are equal to this instance.Object to which PasswordCredential is to be compared other)Overrides java. |
| public ManagedConnectionFactory | Returns: ManagedConnectionFactory instance for which user name and password have been specifiedGets the target ManagedConnectionFactory for which the user name and password has been set by the application server. |
| public char[] | |
| public String | |
| public int | Returns: hash code for this PasswordCredentialOverrides java. |
| public void | setManagedConnectionFactory(ManagedConnectionFactory
ManagedConnectionFactory instance for which user name
and password have been specified mcf)Sets the target ManagedConenctionFactory instance for which the user name and password has been set by the application server. |
| mcf | back to summary |
|---|---|
| private ManagedConnectionFactory mcf | |
| password | back to summary |
|---|---|
| private char[] password | |
| userName | back to summary |
|---|---|
| private String userName | |
| PasswordCredential | back to summary |
|---|---|
| public PasswordCredential(String userName, char[] password) Creates a new Note that the given user password is cloned before it is stored in
the new
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Compares this PasswordCredential with the specified object for equality. The two PasswordCredential instances are the same if they are equal in username and password.
| |
| getManagedConnectionFactory | back to summary |
|---|---|
| public ManagedConnectionFactory getManagedConnectionFactory() Gets the target ManagedConnectionFactory for which the user name and password has been set by the application server. A ManagedConnection- Factory uses this field to find out whether PasswordCredential should be used by it for sign-on to the target EIS instance.
| |
| getPassword | back to summary |
|---|---|
| public char[] getPassword() Returns the user password. 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.
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() Returns the user name.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code for this PasswordCredential
| |
| setManagedConnectionFactory | back to summary |
|---|---|
| public void setManagedConnectionFactory(ManagedConnectionFactory mcf) Sets the target ManagedConenctionFactory instance for which the user name and password has been set by the application server.
| |