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.UserDetails
getUserFromCache(java.lang.String username)
void
putUserInCache(org.springframework.security.core.userdetails.UserDetails user)
void
removeUserFromCache(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:
getUserFromCache
in interfaceorg.springframework.security.core.userdetails.UserCache
-
putUserInCache
public void putUserInCache(org.springframework.security.core.userdetails.UserDetails user)- Specified by:
putUserInCache
in interfaceorg.springframework.security.core.userdetails.UserCache
-
removeUserFromCache
public void removeUserFromCache(java.lang.String username)- Specified by:
removeUserFromCache
in interfaceorg.springframework.security.core.userdetails.UserCache
-