Top Description Methods
org.h2.security.auth

public Interface Authenticator

Known Direct Implementers
org.h2.security.auth.DefaultAuthenticator
Imports
org.h2.engine.Database, .User

Low level interface to implement full authentication process.

Method Summary

Modifier and TypeMethod and Description
public User

Returns:

valid database user or null if user doesn't exists in the database
authenticate
(AuthenticationInfo
authentication info.
authenticationInfo
,
Database
target database instance.
database
)

Perform user authentication.

public void
init(Database
target database
database
)

Initialize the authenticator.

Method Detail

authenticateback to summary
public User authenticate(AuthenticationInfo authenticationInfo, Database database) throws AuthenticationException

Perform user authentication.

Parameters
authenticationInfo:AuthenticationInfo

authentication info.

database:Database

target database instance.

Returns:User

valid database user or null if user doesn't exists in the database

Exceptions
AuthenticationException:
on failure
initback to summary
public void init(Database database) throws AuthConfigException

Initialize the authenticator. This method is invoked by databases when the authenticator is set when the authenticator is set.

Parameters
database:Database

target database