Class ConfigUserStore
- java.lang.Object
-
- io.helidon.security.providers.httpauth.ConfigUserStore
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.security.providers.httpauth.UserStore
UserStore.User
-
-
Constructor Summary
Constructors Constructor Description ConfigUserStore()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigUserStorecreate(Config config)Create an instance from config.Optional<UserStore.User>user(String login)Get user based on login.
-
-
-
Method Detail
-
create
public static ConfigUserStore create(Config config)
Create an instance from config. Expects key "users" to be the current key. Example:users: [ { login = "jack" password = "${CLEAR=password}" roles = ["user", "admin"] }, { login = "jill" # master password is "jungle", password is "password" password = "${AES=3XQ8A1RszE9JbXl+lUnnsX0gakuqjnTyp8YJWIAU1D3SiM2TaSnxd6U0/LjrdJYv}" roles = ["user"] } ]- Parameters:
config- to load this user store from- Returns:
UserStoreinstance
-
-