org.eclipse.jetty.jndi.factories
类 MailSessionReference.PasswordAuthenticator

java.lang.Object
  继承者 javax.mail.Authenticator
      继承者 org.eclipse.jetty.jndi.factories.MailSessionReference.PasswordAuthenticator
包容类:
MailSessionReference

public static class MailSessionReference.PasswordAuthenticator
extends Authenticator


构造方法摘要
MailSessionReference.PasswordAuthenticator()
           
MailSessionReference.PasswordAuthenticator(String user, String password)
           
 
方法摘要
 String getPassword()
           
 PasswordAuthentication getPasswordAuthentication()
          Called when password authentication is needed.
 String getUser()
           
 void setPassword(String password)
           
 void setUser(String user)
           
 
从类 javax.mail.Authenticator 继承的方法
getDefaultUserName, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingSite
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MailSessionReference.PasswordAuthenticator

public MailSessionReference.PasswordAuthenticator()

MailSessionReference.PasswordAuthenticator

public MailSessionReference.PasswordAuthenticator(String user,
                                                  String password)
方法详细信息

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication()
从类 Authenticator 复制的描述
Called when password authentication is needed. Subclasses should override the default implementation, which returns null.

Note that if this method uses a dialog to prompt the user for this information, the dialog needs to block until the user supplies the information. This method can not simply return after showing the dialog.

覆盖:
Authenticator 中的 getPasswordAuthentication
返回:
The PasswordAuthentication collected from the user, or null if none is provided.

setUser

public void setUser(String user)

getUser

public String getUser()

getPassword

public String getPassword()

setPassword

public void setPassword(String password)


Copyright © 2013. All Rights Reserved.