Top Description Methods
org.h2.api

public Interface CredentialsValidator

extends Configurable
Known Direct Implementers
org.h2.security.auth.impl.JaasCredentialsValidator, org.h2.security.auth.impl.LdapCredentialsValidator, org.h2.security.auth.impl.StaticUserCredentialsValidator
Imports
org.h2.security.auth.AuthenticationInfo, .Configurable

A class that implement this interface can be used to validate credentials provided by client.

This feature is experimental and subject to change

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if credentials are valid, otherwise false
validateCredentials
(AuthenticationInfo
= authentication info
authenticationInfo
)

Validate user credential.

Inherited from org.h2.security.auth.Configurable:
configure

Method Detail

validateCredentialsback to summary
public boolean validateCredentials(AuthenticationInfo authenticationInfo) throws Exception

Validate user credential.

Parameters
authenticationInfo:AuthenticationInfo

= authentication info

Returns:boolean

true if credentials are valid, otherwise false

Exceptions
Exception:
any exception occurred (invalid credentials or internal issue) prevent user login