public class SwingAuthenticator extends Object implements JDBCAuthenticator
Constructor and Description |
---|
SwingAuthenticator() |
Modifier and Type | Method and Description |
---|---|
String[] |
authenticate()
This implementation of
authenticate takes care to execute
any GUI interactions on the AWT event dipatch thread, so it may
be called from any thread. |
Component |
getParentComponent()
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.
|
public void setParentComponent(Component parent)
parent
- the parent component for the dialog box -
may be null
public Component getParentComponent()
null
public String[] authenticate() throws IOException
authenticate
takes care to execute
any GUI interactions on the AWT event dipatch thread, so it may
be called from any thread.authenticate
in interface JDBCAuthenticator
String[]{username,password}
IOException
- if there is some errorCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.