jrun.appclient
Class HttpAuthenticator

java.lang.Object
  |
  +--java.net.Authenticator
        |
        +--jrun.appclient.HttpAuthenticator

public class HttpAuthenticator
extends java.net.Authenticator

This is the callback object that gets called when a protected resource needs to be accessed and authentication information is needed. Pops up a UI to input username and password.


Field Summary
static boolean debug
           
 
Constructor Summary
HttpAuthenticator(AppClient appClient)
          Create the authenticator.
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          This is called when authentication is needed for a protected web resource.
 
Methods inherited from class java.net.Authenticator
getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static final boolean debug
Constructor Detail

HttpAuthenticator

public HttpAuthenticator(AppClient appClient)
Create the authenticator.
Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
This is called when authentication is needed for a protected web resource. It looks for the authentication data in the subject. If the data is not found then login is invoked on the login context.
Overrides:
getPasswordAuthentication in class java.net.Authenticator


Copyright � 2002 Macromedia Corporation. All Rights Reserved.