Class CachingUserDataProvider
java.lang.Object
com.predic8.membrane.core.interceptor.authentication.session.CachingUserDataProvider
- All Implemented Interfaces:
UserDataProvider
- Description
- Caching User Data provider caches previous successful logins in order to make authentication faster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidvoidsetExpiryTime(String expiry) voidsetMaxSize(String maxSize) voidsetUserDataProvider(UserDataProvider userDataProvider)
-
Constructor Details
-
CachingUserDataProvider
public CachingUserDataProvider()
-
-
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)
-
getUserDataProvider
-
setUserDataProvider
- Description
- The user data provider verifying a combination of a username with a password.
-
init
- Specified by:
initin interfaceUserDataProvider
-
setExpiryTime
- Description
- Expire time for cache in milliseconds
- Example
- 600000
-
getExpiryTime
public int getExpiryTime() -
setMaxSize
- Description
- Max cache size
- Example
- 10000
-
getMaxSize
public int getMaxSize()
-