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

es.gob.afirma.cert.certvalidation.CrlCertificateVerifier Maven / Gradle / Ivy

There is a newer version: 1.8.2
Show newest version
/* 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