Class DefaultPrincipalAttributesRepository
- java.lang.Object
-
- org.apereo.cas.authentication.principal.cache.AbstractPrincipalAttributesRepository
-
- org.apereo.cas.authentication.principal.DefaultPrincipalAttributesRepository
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.AutoCloseable
,org.apereo.cas.authentication.principal.PrincipalAttributesRepository
public class DefaultPrincipalAttributesRepository extends AbstractPrincipalAttributesRepository
Default implementation ofPrincipalAttributesRepository
that just returns the attributes as it receives them.- Since:
- 4.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultPrincipalAttributesRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPrincipalAttributes(java.lang.String id, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes, org.apereo.cas.services.RegisteredService registeredService)
Add principal attributes into the underlying cache instance.java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
getAttributes(org.apereo.cas.authentication.principal.Principal principal, org.apereo.cas.services.RegisteredService registeredService)
-
Methods inherited from class org.apereo.cas.authentication.principal.cache.AbstractPrincipalAttributesRepository
areAttributeRepositoryIdsDefined, close, convertAttributesToPrincipalAttributesAndCache, convertPersonAttributesToPrincipalAttributes, convertPrincipalAttributesToPersonAttributes, determineMergingStrategy, getAttributeRepository, getPrincipalAttributes, retrievePersonAttributesFromAttributeRepository
-
-
-
-
Method Detail
-
addPrincipalAttributes
protected void addPrincipalAttributes(java.lang.String id, java.util.Map<java.lang.String,java.util.List<java.lang.Object>> attributes, org.apereo.cas.services.RegisteredService registeredService)
Description copied from class:AbstractPrincipalAttributesRepository
Add principal attributes into the underlying cache instance.- Specified by:
addPrincipalAttributes
in classAbstractPrincipalAttributesRepository
- Parameters:
id
- identifier used by the cache as key.attributes
- attributes to cacheregisteredService
- the registered service
-
getAttributes
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getAttributes(org.apereo.cas.authentication.principal.Principal principal, org.apereo.cas.services.RegisteredService registeredService)
- Specified by:
getAttributes
in interfaceorg.apereo.cas.authentication.principal.PrincipalAttributesRepository
- Specified by:
getAttributes
in classAbstractPrincipalAttributesRepository
-
-