Class PrincipalAttributesRepositoryCache
- java.lang.Object
-
- org.apereo.cas.authentication.principal.cache.PrincipalAttributesRepositoryCache
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class PrincipalAttributesRepositoryCache extends java.lang.Object implements java.io.Closeable
This isPrincipalAttributesRepositoryCache
.- Since:
- 6.1.0
-
-
Constructor Summary
Constructors Constructor Description PrincipalAttributesRepositoryCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getCachedAttributesFor(org.apereo.cas.services.RegisteredService registeredService, CachingPrincipalAttributesRepository repository, org.apereo.cas.authentication.principal.Principal principal)
Gets cached attributes.void
invalidateAll()
Invalidate all.void
putCachedAttributesFor(org.apereo.cas.services.RegisteredService registeredService, CachingPrincipalAttributesRepository repository, java.lang.String id, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)
Put cached attributes.
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
invalidateAll
public void invalidateAll()
Invalidate all.
-
getCachedAttributesFor
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getCachedAttributesFor(org.apereo.cas.services.RegisteredService registeredService, CachingPrincipalAttributesRepository repository, org.apereo.cas.authentication.principal.Principal principal)
Gets cached attributes. Locate the cache for the service first.- Parameters:
registeredService
- the registered servicerepository
- the repositoryprincipal
- the principal- Returns:
- the cached attributes for
-
putCachedAttributesFor
public void putCachedAttributesFor(org.apereo.cas.services.RegisteredService registeredService, CachingPrincipalAttributesRepository repository, java.lang.String id, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes)
Put cached attributes.- Parameters:
registeredService
- the registered servicerepository
- the repositoryid
- the idattributes
- the attributes
-
-