sqlg2.db
Interface AuthenticationHelper

All Known Implementing Classes:
DBAuthenticationImpl

public interface AuthenticationHelper

Is used for client's connecting to DB. Method authenticate(java.sql.Connection, String, String) allows to perform some additional authentication.

See Also:
DBAuthenticationImpl

Method Summary
 java.lang.Object authenticate(java.sql.Connection conn, java.lang.String user, java.lang.String password)
          Authentication
 ConnectionManager getConnectionManager(java.lang.String user, java.lang.String password)
          DB connection pool creation.
 

Method Detail

getConnectionManager

ConnectionManager getConnectionManager(java.lang.String user,
                                       java.lang.String password)
                                       throws java.sql.SQLException
DB connection pool creation.

Throws:
java.sql.SQLException

authenticate

java.lang.Object authenticate(java.sql.Connection conn,
                              java.lang.String user,
                              java.lang.String password)
                              throws java.sql.SQLException
Authentication

Parameters:
conn - DB connection to use
user - "external" user name
password - "external" user password
Returns:
User identifier in case of success (always not null), null in case of error. User identifier object must be serializable.
Throws:
java.sql.SQLException - in case of authentication error