javax.mail

Class Authenticator

public abstract class Authenticator extends Object

Callback object that can be used to obtain password information during authentication. This normally occurs by prompting the user for a password or retrieving it from secure storage.

Version: 1.4

Author: Chris Burdess

Method Summary
protected StringgetDefaultUserName()
Returns the default user name.
protected PasswordAuthenticationgetPasswordAuthentication()
Called when password authentication is needed.
protected intgetRequestingPort()
Returns the port used in the request.
protected StringgetRequestingPrompt()
Returns the user prompt string for the request.
protected StringgetRequestingProtocol()
Returns the protocol for the request.
protected InetAddressgetRequestingSite()
Returns the IP address of the request host, or null if not available.

Method Detail

getDefaultUserName

protected final String getDefaultUserName()
Returns the default user name.

getPasswordAuthentication

protected PasswordAuthentication getPasswordAuthentication()
Called when password authentication is needed. This method should be overridden by subclasses.

getRequestingPort

protected final int getRequestingPort()
Returns the port used in the request.

getRequestingPrompt

protected final String getRequestingPrompt()
Returns the user prompt string for the request.

getRequestingProtocol

protected final String getRequestingProtocol()
Returns the protocol for the request.

getRequestingSite

protected final InetAddress getRequestingSite()
Returns the IP address of the request host, or null if not available.
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved