| 程序包 | 说明 |
|---|---|
| org.h2.api |
Contains interfaces for user-defined extensions, such as triggers and user-defined aggregate functions.
|
| org.h2.security.auth.impl |
Authentication classes.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
CredentialsValidator
A class that implement this interface can be used to validate credentials
provided by client.
|
interface |
UserToRolesMapper
A class that implement this interface can be used during authentication to
map external users to database roles.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AssignRealmNameRole
Assign to user a role based on realm name
*
Configuration parameters:
roleNameFormat, optional by default is @{realm}
|
class |
JaasCredentialsValidator
Validate credentials by using standard Java Authentication and Authorization Service
Configuration parameters:
appName inside the JAAS configuration (by default h2)
|
class |
LdapCredentialsValidator
Validate credentials by performing an LDAP bind
Configuration parameters:
bindDnPattern bind dn pattern with %u instead of username
(example: uid=%u,ou=users,dc=example,dc=com)
host ldap server
port of ldap service; optional, by default 389 for insecure, 636 for secure
secure, optional by default is true (use SSL)
|
class |
StaticRolesMapper
Assign static roles to authenticated users
Configuration parameters:
roles role list separated by comma
|
class |
StaticUserCredentialsValidator
This credentials validator matches the user and password with the configured
Usage should be limited to test purposes
|
Copyright © 2022. All rights reserved.