javax.mail
类 PasswordAuthentication

java.lang.Object
  继承者 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


Copyright © 2013. All Rights Reserved.