Class StaticUserDataProvider
java.lang.Object
com.predic8.membrane.core.interceptor.authentication.session.StaticUserDataProvider
- All Implemented Interfaces:
UserDataProvider
- Description
- A user data provider listing all user data in-place in the config file.
- Explanation
the staticuserdataprovider can be used to statically list user data within the config file.
each user must have a unique username attribute as well as a password attribute.
arbitrary attributes can be set on a user element. other sub-components of the login interceptor might use those: for example, the telekomsmstokenprovider uses the sms property as the user's cell phone number. for example, the totptokenprovider uses the secret property to initialize the token sequence.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUsers()voidbooleanisHashedPassword(String postDataPassword) voidsetUsers(List<StaticUserDataProvider.User> users) voidsetUsersByName(Map<String, StaticUserDataProvider.User> usersByName)
-
Constructor Details
-
StaticUserDataProvider
public StaticUserDataProvider()
-
-
Method Details
-
verify
- Specified by:
verifyin interfaceUserDataProvider- Returns:
- a hash map containing the user's attributes (used for the token generator or to pass on HTTP headers)
-
isHashedPassword
-
getUsers
-
setUsers
-
getUsersByName
-
setUsersByName
-
init
- Specified by:
initin interfaceUserDataProvider
-