public class H2AuthConfig extends Object
| 构造器和说明 |
|---|
H2AuthConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<RealmConfig> |
getRealms()
Gets configuration of authentication realms.
|
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(List<RealmConfig> realms)
Sets configuration of authentication realms.
|
void |
setUserToRolesMappers(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 List<RealmConfig> getRealms()
public void setRealms(List<RealmConfig> realms)
realms - configuration of authentication realms.public List<UserToRolesMapperConfig> getUserToRolesMappers()
public void setUserToRolesMappers(List<UserToRolesMapperConfig> userToRolesMappers)
userToRolesMappers - configuration of the mappers external users to database roles.Copyright © 2022. All rights reserved.