Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*************************************************************************
* *
* CESeCore: CE Security Core *
* *
* This software is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or any later version. *
* *
* See terms of license at gnu.org. *
* *
*************************************************************************/
package org.cesecore.certificates.ca;
import java.io.Serializable;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.ServiceLoader;
import org.apache.log4j.Logger;
import org.bouncycastle.cert.X509CRLHolder;
import org.cesecore.certificates.ca.extendedservices.ExtendedCAServiceInfo;
import org.cesecore.certificates.ca.extendedservices.ExtendedCAServiceTypes;
import org.cesecore.certificates.crl.RevokedCertInfo;
import org.cesecore.config.CesecoreConfiguration;
import org.cesecore.internal.InternalResources;
import org.cesecore.keys.token.CryptoToken;
/**
* Base class for CVC CAs. Holds data specific for Certificate and CRL generation
* according to the CVC (Card Verifiable Certificate) standards, which are not real standards.
* There can be many different implementations of CVC CA which are quite different, for example EU EAC electronic passports,
* Tachographs and eIDs.
*
* @version $Id: CvcCA.java 30573 2018-11-22 07:33:46Z samuellb $
*/
public abstract class CvcCA extends CA implements Serializable {
private static final long serialVersionUID = 3L;
private static final Logger log = Logger.getLogger(CvcCA.class);
/** Internal localization of logs and errors */
private static final InternalResources intres = InternalResources.getInstance();
/** Version of this class, if this is increased the upgrade() method will be called automatically */
public static final float LATEST_VERSION = 4;
/** Creates a new instance of CA, this constructor should be used when a new CA is created */
public void init(CVCCAInfo cainfo) {
super.init(cainfo);
data.put(CA.CATYPE, Integer.valueOf(CAInfo.CATYPE_CVC));
data.put(VERSION, new Float(LATEST_VERSION));
}
public static CvcCA getInstance(CVCCAInfo cainfo) {
// For future: Type here should be extracted from cainfo to select between different implementations
CvcCA ret = (CvcCA)createCAImpl("EAC");
if (ret != null) {
ret.init(cainfo);
}
return ret;
}
public static CvcCA getInstance(HashMap