private final String fingerprint;
private final long thisUpdate;
private final long nextUpdate;
StoreCRLPreparer(byte[] incrl, String cafp, int number) throws PublisherException{
super();
final X509CRL crl;
try {
crl = CertTools.getCRLfromByteArray(incrl);
// Is it a delta CRL?
this.deltaCRLIndicator = crl.getExtensionValue(X509Extensions.DeltaCRLIndicator.getId())!=null ? 1 : -1;
this.issuerDN = new X509Principal(crl.getIssuerX500Principal().getEncoded()).getName();// getName() the BC way
this.cRLNumber = number;
this.cAFingerprint = cafp;
this.base64Crl = new String(Base64.encode(incrl));
this.fingerprint = CertTools.getFingerprintAsString(incrl);
this.thisUpdate = crl.getThisUpdate().getTime();
this.nextUpdate = crl.getNextUpdate().getTime();
if (log.isDebugEnabled()) {
log.debug("Publishing CRL with fingerprint "+this.fingerprint+", number "+number+" to external CRL store for the CA "+this.issuerDN+(this.deltaCRLIndicator>0 ? ". It is a delta CRL." : "."));
}
} catch (Exception e) {
String msg = intres.getLocalizedMessage("publisher.errorldapdecode", "CRL");