uk.ac.starlink.table.jdbc
Interface JDBCAuthenticator

All Known Implementing Classes:
SwingAuthenticator, TerminalAuthenticator

public interface JDBCAuthenticator

Specifies authentication to make a JDBC connection. The authenticate method can be called to retrieve the username and password to be used.


Method Summary
 String[] authenticate()
          Obtains username and password.
 

Method Detail

authenticate

public String[] authenticate()
                      throws IOException
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 be null.

Returns:
String[]{username,password}
Throws:
IOException - if there is some error

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.