javax.mail
クラス PasswordAuthentication
java.lang.Object
javax.mail.PasswordAuthentication
public final class PasswordAuthentication
- extends Object
PasswordAuthentication クラスは、Authenticator が使うデータホルダーです。
これは、ユーザ名とパスワードのためのリポジトリに過ぎません。
- 関連項目:
PasswordAuthentication
,
Authenticator
,
Authenticator.getPasswordAuthentication()
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordAuthentication
public PasswordAuthentication(String userName,
String password)
- 新しい PasswordAuthentication を初期化します。
- パラメータ:
userName
- ユーザ名password
- ユーザのパスワード
getUserName
public String getUserName()
- 戻り値:
- ユーザ名
getPassword
public String getPassword()
- 戻り値:
- パスワード