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 ofauthenticatetakes 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.voidsetParentComponent(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 ofauthenticatetakes care to execute any GUI interactions on the AWT event dipatch thread, so it may be called from any thread.- Specified by:
authenticatein interfaceJDBCAuthenticator- Returns:
String[]{username,password}- Throws:
IOException- if there is some error
-