}
return result;
}
private static X509AuxCertificate certificateFromASN1(DEREncodable current) throws PKCS7Exception {
X509CertificateStructure struct = X509CertificateStructure.getInstance(current);
try {
return new X509AuxCertificate(new X509CertificateObject(struct));
} catch (CertificateParsingException cpe) {
throw new PKCS7Exception(PKCS7.F_B64_READ_PKCS7, PKCS7.R_CERTIFICATE_VERIFY_ERROR, cpe);
}