es.gob.afirma.cert.certvalidation.CrlCertificateVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of afirma-crypto-validation Show documentation
Show all versions of afirma-crypto-validation Show documentation
Modulo para la validacion del core de firma de firmas ASN.1 y XML
/* Copyright (C) 2011 [Gobierno de Espana]
* This file is part of "Cliente @Firma".
* "Cliente @Firma" is free software; you can redistribute it and/or modify it under the terms of:
* - the GNU General Public License as published by the Free Software Foundation;
* either version 2 of the License, or (at your option) any later version.
* - or The European Software License; either version 1.1 or (at your option) any later version.
* You may contact the copyright holder at: [email protected]
*/
package es.gob.afirma.cert.certvalidation;
import java.security.cert.X509Certificate;
/** Validador de certificados X.509v3 por verificación de listas de revocación
* y de periodo de validez contra el reloj del sistema.
* Clase cedida por YoHago.
* @author Tomás García-Merás */
public final class CrlCertificateVerifier extends CertificateVerifier {
@Override
public ValidationResult verifyRevocation(final X509Certificate cert) {
return CrlHelper.verifyCertificateCRLs(
cert,
this.getIssuerCert() != null ? this.getIssuerCert().getPublicKey() : null,
null
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy