All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.digidoc4j.CertificateValidator Maven / Gradle / Ivy

Go to download

DigiDoc4j is a Java library for digitally signing documents and creating digital signature containers of signed documents

The newest version!
package org.digidoc4j;

import java.security.cert.X509Certificate;

import org.digidoc4j.exceptions.CertificateValidationException;

import eu.europa.esig.dss.spi.x509.CertificateSource;

/**
 * Created by Janar Rahumeel (CGI Estonia)
 */

public interface CertificateValidator {

  /**
   * Calls validation logic for given certificate
   *
   * @param subjectCertificate subject certificate to validate
   * @throws CertificateValidationException exception containing validation status
   */
  void validate(X509Certificate subjectCertificate) throws CertificateValidationException;

  /**
   * @return CertificateSource
   */
  CertificateSource getCertificateSource();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy