public class JAuthenticator
extends java.net.Authenticator
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JButton |
cancelButton |
protected javax.swing.JPasswordField |
JPassword |
protected javax.swing.JTextField |
JUserID |
static java.lang.String |
LABEL_CANCEL |
static java.lang.String |
LABEL_OK |
static java.lang.String |
LABEL_PASSWORD |
static java.lang.String |
LABEL_REQ |
static java.lang.String |
LABEL_SITE |
static java.lang.String |
LABEL_USERID |
protected javax.swing.JLabel |
label1 |
protected javax.swing.JLabel |
label2 |
protected javax.swing.JButton |
okButton |
static java.lang.String |
TITLE
Internationalization message string
|
protected javax.swing.JDialog |
window |
Constructor and Description |
---|
JAuthenticator() |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JComponent |
buildAuthPanel() |
protected javax.swing.JComponent |
buildButtonPanel() |
java.net.PasswordAuthentication |
getPasswordAuthentication()
This is called by the protocol stack when authentication is
required.
|
protected void |
initWindow() |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
public static final java.lang.String TITLE
public static final java.lang.String LABEL_SITE
public static final java.lang.String LABEL_REQ
public static final java.lang.String LABEL_USERID
public static final java.lang.String LABEL_PASSWORD
public static final java.lang.String LABEL_CANCEL
public static final java.lang.String LABEL_OK
protected javax.swing.JDialog window
protected javax.swing.JButton cancelButton
protected javax.swing.JButton okButton
protected javax.swing.JLabel label1
protected javax.swing.JLabel label2
protected javax.swing.JTextField JUserID
protected javax.swing.JPasswordField JPassword
protected void initWindow()
protected javax.swing.JComponent buildAuthPanel()
protected javax.swing.JComponent buildButtonPanel()
public java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class java.net.Authenticator
Copyright © 2022 Apache Software Foundation. All Rights Reserved.