org.digidoc4j.CertificateValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digidoc4j Show documentation
Show all versions of digidoc4j Show documentation
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();
}