PasswordAuthentication (Java EE 5)

Java EE API


javax.mail Class PasswordAuthentication

java.lang.Object
  extended by javax.mail.PasswordAuthentication

public final class PasswordAuthentication
extends Object


PasswordAuthentication 类是供 Authenticator 使用的数据持有者。它只是用户名和密码的存储库。
英文文档:

The class PasswordAuthentication is a data holder that is used by Authenticator. It is simply a repository for a user name and a password.

Version:
1.6, 05/04/07
Author:
Bill Foote
See Also:
PasswordAuthentication, Authenticator, Authenticator.getPasswordAuthentication()

Constructor Summary
 
Method Summary
 String
 String
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public PasswordAuthentication(String userName, String password)
初始化新的 PasswordAuthentication
userName 用户名
password 用户的密码
英文文档:

PasswordAuthentication

public PasswordAuthentication(String userName,
                              String password)
Initialize a new PasswordAuthentication

Parameters:
userName - the user name
password - The user's password

Method Detail

public String getUserName()
return 用户名
英文文档:

getUserName

public String getUserName()
Returns:
the user name

public String getPassword()
return 密码
英文文档:

getPassword

public String getPassword()
Returns:
the password


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!