Top Description Classes
[default module]

Package org.h2.security.auth.impl


Authentication classes.

Class Summary

Modifier and TypeClass and Description
public class
AssignRealmNameRole

Assign to user a role based on realm name *

Configuration parameters:

  • roleNameFormat, optional by default is @{realm}
public class
JaasCredentialsValidator

Validate credentials by using standard Java Authentication and Authorization Service

Configuration parameters:

  • appName inside the JAAS configuration (by default h2)
public 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)
public class
StaticRolesMapper

Assign static roles to authenticated users

Configuration parameters:

  • roles role list separated by comma
public class
StaticUserCredentialsValidator

This credentials validator matches the user and password with the configured Usage should be limited to test purposes