public class H2AuthConfig
extends java.lang.Object
| Constructor and Description |
|---|
H2AuthConfig() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<RealmConfig> |
getRealms()
Gets configuration of authentication realms.
|
java.util.List<UserToRolesMapperConfig> |
getUserToRolesMappers()
Gets configuration of the mappers external users to database roles.
|
boolean |
isAllowUserRegistration()
Allow user registration flag.
|
boolean |
isCreateMissingRoles()
When set create roles not found in the database.
|
void |
setAllowUserRegistration(boolean allowUserRegistration) |
void |
setCreateMissingRoles(boolean createMissingRoles)
When set create roles not found in the database.
|
void |
setRealms(java.util.List<RealmConfig> realms)
Sets configuration of authentication realms.
|
void |
setUserToRolesMappers(java.util.List<UserToRolesMapperConfig> userToRolesMappers)
Sets configuration of the mappers external users to database roles.
|
public boolean isAllowUserRegistration()
true
creates external users in the database if not present.true in case user registration is allowed,
otherwise returns false.public void setAllowUserRegistration(boolean allowUserRegistration)
allowUserRegistration - Allow user registration flag.public boolean isCreateMissingRoles()
true if the flag is set, otherwise returns false.public void setCreateMissingRoles(boolean createMissingRoles)
createMissingRoles - missing roles flag.public java.util.List<RealmConfig> getRealms()
public void setRealms(java.util.List<RealmConfig> realms)
realms - configuration of authentication realms.public java.util.List<UserToRolesMapperConfig> getUserToRolesMappers()
public void setUserToRolesMappers(java.util.List<UserToRolesMapperConfig> userToRolesMappers)
userToRolesMappers - configuration of the mappers external users to database roles.