Top Description Fields Constructors Methods
org.h2.security.auth.impl

public Class LdapCredentialsValidator

extends Object
implements CredentialsValidator
Class Inheritance
All Implemented Interfaces
org.h2.api.CredentialsValidator, org.h2.security.auth.Configurable
Imports
java.util.Hashtable, javax.naming.Context, javax.naming.directory.DirContext, .InitialDirContext, org.h2.api.CredentialsValidator, org.h2.security.auth.AuthenticationInfo, .ConfigProperties

Validate credentials by performing an LDAP bind

Configuration parameters:

Field Summary

Modifier and TypeField and Description
private String
private String
private int
private boolean
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
configure(ConfigProperties
= configuration properties
configProperties
)

Implements org.h2.security.auth.Configurable.configure.

configure the component

public boolean
validateCredentials(AuthenticationInfo
= authentication info
authenticationInfo
)

Implements org.h2.api.CredentialsValidator.validateCredentials.

Validate user credential.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bindDnPatternback to summary
private String bindDnPattern
hostback to summary
private String host
portback to summary
private int port
secureback to summary
private boolean secure
urlback to summary
private String url

Constructor Detail

LdapCredentialsValidatorback to summary
public LdapCredentialsValidator()

Method Detail

configureback to summary
public void configure(ConfigProperties configProperties)

Implements org.h2.security.auth.Configurable.configure.

Doc from org.h2.security.auth.Configurable.configure.

configure the component

Parameters
configProperties:ConfigProperties

= configuration properties

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

Implements org.h2.api.CredentialsValidator.validateCredentials.

Doc from org.h2.api.CredentialsValidator.validateCredentials.

Validate user credential.

Parameters
authenticationInfo:AuthenticationInfo

= authentication info

Returns:boolean

true if credentials are valid, otherwise false

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