org.apache.batik.apps.svgbrowser

Class 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.
Field Summary
protected JButtoncancelButton
protected JPasswordFieldJPassword
protected JTextFieldJUserID
protected JLabellabel1
protected JLabellabel2
static StringLABEL_CANCEL
static StringLABEL_OK
static StringLABEL_PASSWORD
static StringLABEL_REQ
static StringLABEL_SITE
static StringLABEL_USERID
protected JButtonokButton
static StringTITLE
Internationalization message string
protected JDialogwindow
Constructor Summary
JAuthenticator()
Method Summary
protected JComponentbuildAuthPanel()
protected JComponentbuildButtonPanel()
PasswordAuthenticationgetPasswordAuthentication()
This is called by the protocol stack when authentication is required.
protected voidinitWindow()

Field Detail

cancelButton

protected JButton cancelButton

JPassword

protected JPasswordField JPassword

JUserID

protected JTextField JUserID

label1

protected JLabel label1

label2

protected JLabel label2

LABEL_CANCEL

public static final String LABEL_CANCEL

LABEL_OK

public static final String LABEL_OK

LABEL_PASSWORD

public static final String LABEL_PASSWORD

LABEL_REQ

public static final String LABEL_REQ

LABEL_SITE

public static final String LABEL_SITE

LABEL_USERID

public static final String LABEL_USERID

okButton

protected JButton okButton

TITLE

public static final String TITLE
Internationalization message string

window

protected JDialog window

Constructor Detail

JAuthenticator

public JAuthenticator()

Method Detail

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.

initWindow

protected void initWindow()
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.