Package uk.ac.starlink.table.jdbc
Class SwingAuthenticator
java.lang.Object
uk.ac.starlink.table.jdbc.SwingAuthenticator
- All Implemented Interfaces:
JDBCAuthenticator
Implements JDBCAuthenticator using a GUI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
This implementation ofauthenticate
takes care to execute any GUI interactions on the AWT event dipatch thread, so it may be called from any thread.Returns the parent component for this authenticator; this may affect the positioning of the dialog box.void
setParentComponent
(Component parent) Sets the parent component for this authenticator; this may affect the positioning of the dialog box.
-
Constructor Details
-
SwingAuthenticator
public SwingAuthenticator()
-
-
Method Details
-
setParentComponent
Sets the parent component for this authenticator; this may affect the positioning of the dialog box.- Parameters:
parent
- the parent component for the dialog box - may benull
-
getParentComponent
Returns the parent component for this authenticator; this may affect the positioning of the dialog box.- Returns:
- the parent component for the dialog box -
may be
null
-
authenticate
This implementation ofauthenticate
takes care to execute any GUI interactions on the AWT event dipatch thread, so it may be called from any thread.- Specified by:
authenticate
in interfaceJDBCAuthenticator
- Returns:
String[]{username,password}
- Throws:
IOException
- if there is some error
-