Class LazyOpensslCRLStoreSpi


  • public class LazyOpensslCRLStoreSpi
    extends AbstractCRLStoreSPI
    Handles an Openssl-like CRL store. CRLs are loaded on demand from disk and cached in memory, for no longer then updateInterval parameter.

    This class is thread safe.

    Author:
    K. Benedyczak
    • Constructor Detail

      • LazyOpensslCRLStoreSpi

        public LazyOpensslCRLStoreSpi​(java.lang.String path,
                                      long crlUpdateInterval,
                                      ObserversHandler observers,
                                      boolean openssl1Mode)
                               throws java.security.InvalidAlgorithmParameterException
        Creates a new CRL store.
        Parameters:
        path - path
        crlUpdateInterval - crl update interval
        observers - observers handler
        openssl1Mode - openssl 1 mode
        Throws:
        java.security.InvalidAlgorithmParameterException - invalid algorithm parameter exception
    • Method Detail

      • loadCRL

        protected java.security.cert.X509CRL loadCRL​(java.io.File file)
                                              throws java.io.IOException,
                                                     java.security.cert.CRLException,
                                                     java.net.URISyntaxException
        Throws:
        java.io.IOException
        java.security.cert.CRLException
        java.net.URISyntaxException
      • getUpdateInterval

        public long getUpdateInterval()
      • reloadCRL

        protected java.security.cert.X509CRL reloadCRL​(java.io.File location)
      • getCRLForIssuer

        protected java.util.Collection<java.security.cert.X509CRL> getCRLForIssuer​(javax.security.auth.x500.X500Principal issuer)
        Specified by:
        getCRLForIssuer in class AbstractCRLStoreSPI
      • getCRLWithMatcher

        protected java.util.Collection<java.security.cert.X509CRL> getCRLWithMatcher​(java.security.cert.CRLSelector selectorRaw)
        Specified by:
        getCRLWithMatcher in class AbstractCRLStoreSPI