Class ValidationCrlClient

  • All Implemented Interfaces:
    ICrlClient

    public class ValidationCrlClient
    extends java.lang.Object
    implements ICrlClient
    CRL client which is expected to be used in case CRL responses shall be linked with generation date.
    • Constructor Detail

    • Method Detail

      • addCrl

        public void addCrl​(java.security.cert.X509CRL response,
                           java.util.Date date,
                           TimeBasedContext context)
        Add CRL response which is linked with generation date.
        Parameters:
        response - X509CRL response to be added
        date - Date to be linked with the response
        context - TimeBasedContext time based context which corresponds to generation date
      • getCrls

        public java.util.Map<java.security.cert.X509CRL,​RevocationDataValidator.CrlValidationInfo> getCrls()
        Get all the CRL responses linked with generation dates.
        Returns:
        all the CRL responses linked with generation dates
      • getEncoded

        public java.util.Collection<byte[]> getEncoded​(java.security.cert.X509Certificate checkCert,
                                                       java.lang.String url)
                                                throws java.security.cert.CertificateEncodingException
        Gets an encoded byte array..
        Specified by:
        getEncoded in interface ICrlClient
        Parameters:
        checkCert - The certificate which a CRL URL can be obtained from.
        url - A CRL url if you don't want to obtain it from the certificate.
        Returns:
        A collection of byte array each representing a crl. It may return null or an empty collection.
        Throws:
        java.security.cert.CertificateEncodingException - if an encoding error occurs in X509Certificate.