|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.mail Class PasswordAuthentication
java.lang.Objectjavax.mail.PasswordAuthentication
public final class PasswordAuthentication
- extends Object
PasswordAuthentication 类是供 Authenticator 使用的数据持有者。它只是用户名和密码的存储库。
| version | 1.6, 05/04/07 |
| See also | java.net.PasswordAuthentication, javax.mail.Authenticator, getPasswordAuthentication() |
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 | |
|---|---|
PasswordAuthentication(String userName,
String password)
Initialize a new PasswordAuthentication |
|
| Method Summary | |
|---|---|
String |
getPassword()
|
String |
getUserName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 namepassword- 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
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!
javax.mail.PasswordAuthentication