PasswordAuthentication (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.mail Class PasswordAuthentication

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

public final class PasswordAuthentication
extends Object

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

版本:
1.6, 05/04/07
作者:
Bill Foote
另请参见:
PasswordAuthentication, Authenticator, Authenticator.getPasswordAuthentication()

构造器摘要
PasswordAuthentication(String userName, String password)
          Initialize a new PasswordAuthentication
 
方法摘要
 String getPassword()
           
 String getUserName()
           
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

PasswordAuthentication

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

参数:
userName - the user name
password - The user's password

方法详细信息

getUserName

public String getUserName()
返回:
the user name

getPassword

public String getPassword()
返回:
the password

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.