Class JAuthenticator
java.lang.Object
java.net.Authenticator
org.apache.batik.apps.svgbrowser.JAuthenticator
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 Authenticator
Authenticator.RequestorType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JButtonprotected JPasswordFieldprotected JTextFieldstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected JLabelprotected JLabelprotected JButtonstatic final StringInternationalization message stringprotected JDialog -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JComponentprotected JComponentThis is called by the protocol stack when authentication is required.protected voidMethods inherited from class Authenticator
getDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
-
Field Details
-
TITLE
-
LABEL_SITE
- See Also:
-
LABEL_REQ
- See Also:
-
LABEL_USERID
- See Also:
-
LABEL_PASSWORD
- See Also:
-
LABEL_CANCEL
- See Also:
-
LABEL_OK
- See Also:
-
window
-
cancelButton
-
okButton
-
label1
-
label2
-
JUserID
-
JPassword
-
-
Constructor Details
-
JAuthenticator
public JAuthenticator()
-
-
Method Details
-
initWindow
protected void initWindow() -
buildAuthPanel
-
buildButtonPanel
-
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:
getPasswordAuthenticationin classAuthenticator
-