Package org.h2.security.auth.impl
Class StaticUserCredentialsValidator
java.lang.Object
org.h2.security.auth.impl.StaticUserCredentialsValidator
- All Implemented Interfaces:
CredentialsValidator
,Configurable
This credentials validator matches the user and password with the configured
Usage should be limited to test purposes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(ConfigProperties configProperties) configure the componentboolean
validateCredentials
(AuthenticationInfo authenticationInfo) Validate user credential.
-
Field Details
-
userNamePattern
-
password
-
salt
private byte[] salt -
hashWithSalt
private byte[] hashWithSalt
-
-
Constructor Details
-
StaticUserCredentialsValidator
public StaticUserCredentialsValidator() -
StaticUserCredentialsValidator
-
-
Method Details
-
validateCredentials
public boolean validateCredentials(AuthenticationInfo authenticationInfo) throws AuthenticationException Description copied from interface:CredentialsValidator
Validate user credential.- Specified by:
validateCredentials
in interfaceCredentialsValidator
- Parameters:
authenticationInfo
- = authentication info- Returns:
- true if credentials are valid, otherwise false
- Throws:
AuthenticationException
-
configure
Description copied from interface:Configurable
configure the component- Specified by:
configure
in interfaceConfigurable
- Parameters:
configProperties
- = configuration properties
-