Class ConfigUserStore

    • Constructor Detail

      • ConfigUserStore

        public ConfigUserStore()
    • Method Detail

      • create

        public static SecureUserStore 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:
        SecureUserStore instance