return crl;
}
private URL[] getDistributionPoints(final X509Certificate cert) {
final DistributionPointList points;
try {
points = new ExtensionReader(cert).readCRLDistributionPoints();
} catch (final Exception e) {
log.error(
"Error reading CRLDistributionPoints extension field on " + CertUtils.toString(cert), e);
return new URL[0];
}
final List<URL> urls = new ArrayList<URL>();
for (DistributionPoint point : points.getItems()) {
final Object location = point.getDistributionPoint();
if (location instanceof String) {
addURL(urls, (String) location);
} else if (location instanceof GeneralNameList) {
for (GeneralName gn : ((GeneralNameList) location).getItems()) {