Class RepositoryRevocationSource<T extends RevocationToken>

    • Constructor Detail

      • RepositoryRevocationSource

        public RepositoryRevocationSource()
    • Method Detail

      • insertRevocation

        protected abstract void insertRevocation​(T token)
        Inserts a new RevocationToken into the cache
        Parameters:
        token - RevocationToken
      • updateRevocation

        protected abstract void updateRevocation​(T token)
        Updates the RevocationToken into cache
        Parameters:
        token - RevocationToken
      • removeRevocation

        protected abstract void removeRevocation​(T token)
        Removes the RevocationToken from cache
        Parameters:
        token - RevocationToken
      • setDefaultNextUpdateDelay

        public void setDefaultNextUpdateDelay​(Long defaultNextUpdateDelay)
        Sets the default next update delay for the cached files in seconds. If more time has passed from the revocation token's thisUpdate and next update time is not specified, then a fresh copy is downloaded and cached, otherwise a cached copy is used. If revocation.nextUpdate = null, then nextUpdate = revocation.thisUpdate + defaultNextUpdateDelay
        Parameters:
        defaultNextUpdateDelay - long value (seconds)
      • setMaxNextUpdateDelay

        public void setMaxNextUpdateDelay​(Long maxNextUpdateDelay)
        Sets the maximum allowed nextUpdate delay for cached files in seconds. Allows to force refresh in case of long periods between revocation publication (eg : 6 months for ARL). If revocation.nextUpdate > revocation.thisUpdate + maxNextUpdateDelay, then nextUpdate = revocation.thisUpdate + maxNextUpdateDelay
        Parameters:
        maxNextUpdateDelay - long value (seconds)
      • setProxySource

        public void setProxySource​(OnlineRevocationSource<T> proxiedSource)
        The proxied revocation source to be called if the data is not available in the cache
        Parameters:
        proxiedSource - the proxiedSource to set
      • setRemoveExpired

        public void setRemoveExpired​(boolean removeExpired)
        Parameters:
        removeExpired - the removeExpired to set