Package uk.ac.starlink.table.jdbc
Class TextModelsAuthenticator
java.lang.Object
uk.ac.starlink.table.jdbc.TextModelsAuthenticator
- All Implemented Interfaces:
JDBCAuthenticator
JDBC authenticator which keeps its data in the models of text GUI
components (
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.- Since:
- 13 Feb 2006
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Obtains username and password.Returns the text model for the password string.Returns the text model for the username string.
-
Constructor Details
-
TextModelsAuthenticator
public TextModelsAuthenticator()Constructor.
-
-
Method Details
-
getUserDocument
Returns the text model for the username string.- Returns:
- username document
-
getPasswordDocument
Returns the text model for the password string.- Returns:
- password document
-
authenticate
Description copied from interface:JDBCAuthenticator
Obtains username and password. The return value is a two-element array containing the username and password to be used, in that order. Either or both of these may benull
.- Specified by:
authenticate
in interfaceJDBCAuthenticator
- Returns:
String[]{username,password}
-