org.apache.batik.apps.svgbrowser
Class JAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by org.apache.batik.apps.svgbrowser.JAuthenticator

public class JAuthenticator
extends Authenticator

This class is resposible for providing authentication information when needed by network protocols. It does this by poping up a small window that asks for User ID and password for the system.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType
 
Field Summary
protected  JButton cancelButton
           
protected  JPasswordField JPassword
           
protected  JTextField JUserID
           
static String LABEL_CANCEL
           
static String LABEL_OK
           
static String LABEL_PASSWORD
           
static String LABEL_REQ
           
static String LABEL_SITE
           
static String LABEL_USERID
           
protected  JLabel label1
           
protected  JLabel label2
           
protected  JButton okButton
           
static String TITLE
          Internationalization message string
protected  JDialog window
           
 
Constructor Summary
JAuthenticator()
           
 
Method Summary
protected  JComponent buildAuthPanel()
           
protected  JComponent buildButtonPanel()
           
 PasswordAuthentication getPasswordAuthentication()
          This is called by the protocol stack when authentication is required.
protected  void initWindow()
           
 
Methods inherited from class java.net.Authenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

public static final String TITLE
Internationalization message string

See Also:
Constant Field Values

LABEL_SITE

public static final String LABEL_SITE
See Also:
Constant Field Values

LABEL_REQ

public static final String LABEL_REQ
See Also:
Constant Field Values

LABEL_USERID

public static final String LABEL_USERID
See Also:
Constant Field Values

LABEL_PASSWORD

public static final String LABEL_PASSWORD
See Also:
Constant Field Values

LABEL_CANCEL

public static final String LABEL_CANCEL
See Also:
Constant Field Values

LABEL_OK

public static final String LABEL_OK
See Also:
Constant Field Values

window

protected JDialog window

cancelButton

protected JButton cancelButton

okButton

protected JButton okButton

label1

protected JLabel label1

label2

protected JLabel label2

JUserID

protected JTextField JUserID

JPassword

protected JPasswordField JPassword
Constructor Detail

JAuthenticator

public JAuthenticator()
Method Detail

initWindow

protected void initWindow()

buildAuthPanel

protected JComponent buildAuthPanel()

buildButtonPanel

protected JComponent buildButtonPanel()

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication()
This is called by the protocol stack when authentication is required. We then show the dialog in the Swing event thread, and block waiting for the user to select either cancel or ok, at which point we get notified.

Overrides:
getPasswordAuthentication in class Authenticator


Copyright © 2008 Apache Software Foundation. All Rights Reserved.