Class PrincipalAttributesRepositoryCache

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class PrincipalAttributesRepositoryCache
    extends java.lang.Object
    implements java.io.Closeable
    Since:
    6.1.0
    • Constructor Detail

      • PrincipalAttributesRepositoryCache

        public PrincipalAttributesRepositoryCache()
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.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 service
        repository - the repository
        principal - 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 service
        repository - the repository
        id - the id
        attributes - the attributes