Class DefaultPrincipalAttributesRepository

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.AutoCloseable, org.apereo.cas.authentication.principal.PrincipalAttributesRepository

    public class DefaultPrincipalAttributesRepository
    extends AbstractPrincipalAttributesRepository
    Default implementation of PrincipalAttributesRepository that just returns the attributes as it receives them.
    Since:
    4.1
    See Also:
    Serialized Form
    • Constructor Detail

      • DefaultPrincipalAttributesRepository

        public DefaultPrincipalAttributesRepository()
    • 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 class AbstractPrincipalAttributesRepository
        Parameters:
        id - identifier used by the cache as key.
        attributes - attributes to cache
        registeredService - 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 interface org.apereo.cas.authentication.principal.PrincipalAttributesRepository
        Specified by:
        getAttributes in class AbstractPrincipalAttributesRepository