public class TextModelsAuthenticator extends java.lang.Object implements JDBCAuthenticator
Document
objects).
The advantage of this is that multiple GUI compoents can share
the same data, and changing the password in one will have the effect
of changing it in all.Constructor and Description |
---|
TextModelsAuthenticator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
authenticate()
Obtains username and password.
|
javax.swing.text.Document |
getPasswordDocument()
Returns the text model for the password string.
|
javax.swing.text.Document |
getUserDocument()
Returns the text model for the username string.
|
public javax.swing.text.Document getUserDocument()
public javax.swing.text.Document getPasswordDocument()
public java.lang.String[] authenticate()
JDBCAuthenticator
null
.authenticate
in interface JDBCAuthenticator
String[]{username,password}