API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. Authenticator View Source
Author(s)
Bill Foote
Since
1.2
Version
1.33, 11/17/05
Serial
Hierarchy
 Object
      Authenticator
Implements
Subclasses
Description
publicabstract abstract class Authenticator
  The class Authenticator represents an object that knows how to obtain authentication for a network connection.
Constructors
public Authenticator ()
Methods
Hide/Show inherited methods
protected PasswordAuthentication getPasswordAuthentication ()
  Called when password authorization is needed.
protectedfinal String getRequestingHost ()
  Gets the hostname of the site or proxy requesting authentication, or null if not available.
protectedfinal int getRequestingPort ()
  Gets the port number for the requested connection.
protectedfinal String getRequestingPrompt ()
  Gets the prompt string given by the requestor.
protectedfinal String getRequestingProtocol ()
  Give the protocol that's requesting the connection.
protectedfinal String getRequestingScheme ()
  Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example).
protectedfinal InetAddress getRequestingSite ()
  Gets the InetAddress of the site requesting authorization, or null if not available.
protected URL getRequestingURL ()
  Returns the URL that resulted in this request for authentication.
protected RequestorType getRequestorType ()
  Returns whether the requestor is a Proxy or a Server.
publicstatic PasswordAuthentication requestPasswordAuthentication (InetAddress addr, int port, String protocol, String prompt, String scheme)
  Ask the authenticator that has been registered with the system for a password.
publicstatic PasswordAuthentication requestPasswordAuthentication (String host, InetAddress addr, int port, String protocol, String prompt, String scheme)
  Ask the authenticator that has been registered with the system for a password.
publicstatic PasswordAuthentication requestPasswordAuthentication (String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, RequestorType reqType)
  Ask the authenticator that has been registered with the system for a password.
publicstaticsynchronized void setDefault (Authenticator a)
  Sets the authenticator that will be used by the networking code when a proxy or an HTTP server asks for authentication.
Fields
Hide/Show inherited fields
Nested Classes
  Authenticator.RequestorType
The type of the entity requesting authentication.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar