Class FlowableUserCache
java.lang.Object
com.flowable.core.spring.security.userdetails.FlowableUserCache
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserCache
public class FlowableUserCache
extends java.lang.Object
implements org.springframework.security.core.userdetails.UserCache
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected com.github.benmanes.caffeine.cache.Cache<java.lang.String,org.springframework.security.core.userdetails.UserDetails>cache -
Constructor Summary
Constructors Constructor Description FlowableUserCache(java.time.Duration maxAge, long maxSize) -
Method Summary
Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetailsgetUserFromCache(java.lang.String username)voidputUserInCache(org.springframework.security.core.userdetails.UserDetails user)voidremoveUserFromCache(java.lang.String username)
-
Field Details
-
cache
protected com.github.benmanes.caffeine.cache.Cache<java.lang.String,org.springframework.security.core.userdetails.UserDetails> cache
-
-
Constructor Details
-
FlowableUserCache
public FlowableUserCache(java.time.Duration maxAge, long maxSize)
-
-
Method Details
-
getUserFromCache
public org.springframework.security.core.userdetails.UserDetails getUserFromCache(java.lang.String username)- Specified by:
getUserFromCachein interfaceorg.springframework.security.core.userdetails.UserCache
-
putUserInCache
public void putUserInCache(org.springframework.security.core.userdetails.UserDetails user)- Specified by:
putUserInCachein interfaceorg.springframework.security.core.userdetails.UserCache
-
removeUserFromCache
public void removeUserFromCache(java.lang.String username)- Specified by:
removeUserFromCachein interfaceorg.springframework.security.core.userdetails.UserCache
-