public final class PasswordCredential extends ObjectSE implements SerializableSE
ManagedConnectionFactory, 連載形式 | コンストラクターと説明 |
|---|
PasswordCredential(StringSE userName, char[] password) 指定されたユーザー名とパスワードから新しい PasswordCredential オブジェクトを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | equals(ObjectSE other) この PasswordCredential と指定されたオブジェクトが等しいかどうかを比較します。 |
ManagedConnectionFactory | getManagedConnectionFactory() アプリケーションサーバーによってユーザー名とパスワードが設定されているターゲット ManagedConnectionFactory を取得します。 |
char[] | getPassword() ユーザーのパスワードを返します。 |
StringSE | getUserName() ユーザー名を返します。 |
int | hashCode() この PasswordCredential のハッシュコードを返します |
void | setManagedConnectionFactory(ManagedConnectionFactory mcf) アプリケーションサーバーによってユーザー名とパスワードが設定されているターゲット ManagedConenctionFactory インスタンスを設定します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic PasswordCredential(StringSE userName, char[] password)
PasswordCredential オブジェクトを作成します。 指定されたユーザーパスワードは、新しい PasswordCredential オブジェクトに格納される前に複製されます。
userName - ユーザー名 password - ユーザーのパスワード public StringSE getUserName()
public char[] getPassword()
このメソッドはパスワードへの参照を返すことに注意してください。不要になったパスワード情報をゼロにするのは呼び出し側の責任です。
public ManagedConnectionFactory getManagedConnectionFactory()
public void setManagedConnectionFactory(ManagedConnectionFactory mcf)
mcf - ユーザー名とパスワードが指定された ManagedConnectionFactory インスタンス public boolean equals(ObjectSE other)
public int hashCode()
ObjectSE の hashCodeSE Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.