|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.net.PasswordAuthentication
public final class PasswordAuthentication
PasswordAuthentication 类是供 Authenticator 使用的数据持有者。它只是用户名和密码的存储库。
Authenticator,
Authenticator.getPasswordAuthentication()| 构造方法摘要 | |
|---|---|
PasswordAuthentication(String userName,
char[] password)
根据给定用户名和密码创建新的 PasswordAuthentication 对象。 |
|
| 方法摘要 | |
|---|---|
char[] |
getPassword()
返回用户密码。 |
String |
getUserName()
返回用户名。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public PasswordAuthentication(String userName,
char[] password)
PasswordAuthentication 对象。
注意,要在将给定用户密码存储在新的 PasswordAuthentication 对象中之前复制该密码。
userName - 用户名password - 用户密码| 方法详细信息 |
|---|
public String getUserName()
public char[] getPassword()
注意,此方法返回到密码的引用。不再需要密码信息后,调用方负责将其归零。
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。