Class OfflineCRLSource

    • Constructor Detail

      • OfflineCRLSource

        public OfflineCRLSource()
    • Method Detail

      • getRevocationToken

        public final CRLToken getRevocationToken​(CertificateToken certificateToken,
                                                 CertificateToken issuerToken)
        Description copied from interface: RevocationSource
        This method retrieves a RevocationToken for the certificateToken
        Specified by:
        getRevocationToken in interface RevocationSource<CRLToken>
        Parameters:
        certificateToken - The CertificateToken for which the request is made
        issuerToken - The CertificateToken which is the issuer of the certificateToken
        Returns:
        an instance of RevocationToken
      • addCRLBinary

        protected CRLBinary addCRLBinary​(byte[] binaries,
                                         RevocationOrigin origin)
        Builds CRLBinaryIdentifier from the given binaries and returns the identifier object
        Parameters:
        binaries - byte array to compute identifier from
        origin - RevocationOrigin indicating the correct list to store the value
        Returns:
        computed CRLBinary
      • getCRLBinaryList

        public Collection<CRLBinary> getCRLBinaryList()
        Returns:
        unmodifiable Collection
      • isEmpty

        public boolean isEmpty()
        Checks if the CRL Source is empty or not (crlBinaryOriginsMap)
        Returns:
        TRUE if the source is empty, FALSE otherwise
      • storeCRLToken

        protected void storeCRLToken​(CRLBinary crlBinary,
                                     CRLToken crlToken)
      • getIdentifier

        public CRLBinary getIdentifier​(CRLRef crlRef)
        Returns the identifier related to the crlRef
        Parameters:
        crlRef - CRLRef to find identifier for
        Returns:
        CRLBinary for the reference
      • getIdentifier

        public CRLBinary getIdentifier​(Digest digest)
        Returns the identifier related for the provided digest of the reference
        Parameters:
        digest - Digest of the reference
        Returns:
        CRLBinary for the reference