Class UnifyingUserDataProvider
java.lang.Object
com.predic8.membrane.core.interceptor.authentication.session.UnifyingUserDataProvider
- All Implemented Interfaces:
UserDataProvider
- Explanation
The unifyingUserDataProvider can be used to merge two or more other user data providers into one.
The unifyingUserDataProvider will forward a login attempt (username and password) to each inner user data provider in the order they are specified. After one of the inner user data providers returned a successful login (and returned the user's attributes), the procedure terminates. If no inner user data provider could verify the user, the login attempt fails.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetUserDataProviders(List<UserDataProvider> userDataProviders)
-
Constructor Details
-
UnifyingUserDataProvider
public UnifyingUserDataProvider()
-
-
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)
-
getUserDataProviders
-
setUserDataProviders
-
init
- Specified by:
initin interfaceUserDataProvider
-