public class SwingAuthenticator extends java.lang.Object implements JDBCAuthenticator
| Constructor and Description |
|---|
SwingAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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. |
java.awt.Component |
getParentComponent()
Returns the parent component for this authenticator; this may affect
the positioning of the dialog box.
|
void |
setParentComponent(java.awt.Component parent)
Sets the parent component for this authenticator; this may affect
the positioning of the dialog box.
|
public void setParentComponent(java.awt.Component parent)
parent - the parent component for the dialog box -
may be nullpublic java.awt.Component getParentComponent()
nullpublic java.lang.String[] authenticate()
throws java.io.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 JDBCAuthenticatorString[]{username,password}java.io.IOException - if there is some error