Class CachingPrincipalAttributesRepository
java.lang.Object
org.apereo.cas.authentication.principal.cache.AbstractPrincipalAttributesRepository
org.apereo.cas.authentication.principal.cache.CachingPrincipalAttributesRepository
- All Implemented Interfaces:
Serializable
,org.apereo.cas.authentication.principal.RegisteredServicePrincipalAttributesRepository
Wrapper around an attribute repository where attributes cached for a configurable period
based on google guava's caching library.
- Since:
- 4.2
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttributes
(org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context) long
The expiration time.Expiration time unit.int
hashCode()
setExpiration
(long expiration) The expiration time.setTimeUnit
(String timeUnit) Expiration time unit.toString()
void
update
(String id, Map<String, List<Object>> attributes, org.apereo.cas.services.RegisteredServiceAttributeReleasePolicyContext context) Methods inherited from class org.apereo.cas.authentication.principal.cache.AbstractPrincipalAttributesRepository
getAttributeRepositoryIds, getMergingStrategy, isIgnoreResolvedAttributes, setAttributeRepositoryIds, setIgnoreResolvedAttributes, setMergingStrategy
-
Constructor Details
-
CachingPrincipalAttributesRepository
-
CachingPrincipalAttributesRepository
public CachingPrincipalAttributesRepository()
-
-
Method Details
-
getAttributes
-
update
-
toString
-
getExpiration
public long getExpiration()The expiration time. -
getTimeUnit
Expiration time unit. -
setExpiration
The expiration time.- Returns:
this
.
-
setTimeUnit
Expiration time unit.- Returns:
this
.
-
equals
- Overrides:
equals
in classAbstractPrincipalAttributesRepository
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractPrincipalAttributesRepository
-