public abstract class GuavaBasedSecurityCache<U extends org.springframework.security.core.Authentication,P extends SecurityPolicy> extends Object implements SecurityCache<U>
| Constructor and Description |
|---|
GuavaBasedSecurityCache() |
GuavaBasedSecurityCache(long duration,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<P> |
getPoliciesFor(U user) |
void |
refresh(U user) |
Collection<? extends SecurityPolicy> |
retrieve(U user,
String method) |
public GuavaBasedSecurityCache()
public GuavaBasedSecurityCache(long duration,
TimeUnit timeUnit)
protected abstract Collection<P> getPoliciesFor(U user)
public Collection<? extends SecurityPolicy> retrieve(U user, String method) throws ExecutionException
retrieve in interface SecurityCache<U extends org.springframework.security.core.Authentication>ExecutionExceptionpublic void refresh(U user)
refresh in interface SecurityCache<U extends org.springframework.security.core.Authentication>Copyright © 2016–2018 TechGap Italia. All rights reserved.