try signatureHash = MessageDigest.getInstance("SHA-1").digest(crl.getSignature());
@Override public byte[] getSignature() { X509CRL crl = this.crl; if (crl != null) { return crl.getSignature(); } else { return null; } }
/** * @return the a copy of x509crl as a X509CRLHolder */ public X509CRLHolder getX509CrlHolder() { try { final X509CRL x509crl = getX509crl(); final TBSCertList tbsCertList = TBSCertList.getInstance(x509crl.getTBSCertList()); final AlgorithmIdentifier sigAlgOID = new AlgorithmIdentifier(new ASN1ObjectIdentifier(x509crl.getSigAlgOID())); final byte[] signature = x509crl.getSignature(); final DERSequence seq = new DERSequence(new ASN1Encodable[]{tbsCertList, sigAlgOID, new DERBitString(signature)}); final CertificateList x509CRL = new CertificateList(seq); // final CertificateList x509CRL = new CertificateList.getInstance((Object)seq); final X509CRLHolder x509crlHolder = new X509CRLHolder(x509CRL); return x509crlHolder; } catch (CRLException e) { throw new DSSException(e); } }