factory_ = CertificateFactory.getInstance("X.509");
} catch (CertificateException e1) {
try {
factory_ = CertificateFactory.getInstance("X509");
} catch (CertificateException e2) {
throw new ASN1Exception(e2.getMessage());
}
}
}
cache_ = null;
try {
for (i = size() - 1; i >= 0; i--) {
o = (ASN1Opaque) get(i);
cert = (X509Certificate) factory_
.generateCertificate(new ByteArrayInputStream(o
.getEncoded()));
set(i, cert);
}
} catch (CertificateException e) {
throw new ASN1Exception(e.getMessage());
}
}