com.sun.slamd.parameter
Class FileURLAuthenticator

java.lang.Object
  extended byjava.net.Authenticator
      extended bycom.sun.slamd.parameter.FileURLAuthenticator

public class FileURLAuthenticator
extends java.net.Authenticator

This class defines a very simple authenticator that will be used by the FileURL parameter type in order to access resources that require authentication.


Constructor Summary
FileURLAuthenticator(java.lang.String authID, java.lang.String authPassword)
          Creates a new file URL authenticator that will use the provided ID and password.
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          Retrieves the information needed to authenticate to a protected resource.
 
Methods inherited from class java.net.Authenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileURLAuthenticator

public FileURLAuthenticator(java.lang.String authID,
                            java.lang.String authPassword)
Creates a new file URL authenticator that will use the provided ID and password.

Parameters:
authID - The user ID to use in the authentication process.
authPassword - The password to use in the authentication process.
Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Retrieves the information needed to authenticate to a protected resource.

Returns:
The information needed to authenticate to a protected resource.