final List<String> caIssuers = certProfile.getCaIssuers();
if (caIssuers != null) {
for(final Iterator<String> it = caIssuers.iterator(); it.hasNext(); ) {
url = it.next();
if(StringUtils.isNotEmpty(url)) {
accessLocation = new GeneralName(GeneralName.uniformResourceIdentifier, new DERIA5String(url));
accessList.add(new AccessDescription(AccessDescription.id_ad_caIssuers,
accessLocation));
}
}
}
// ocsp url
final X509CA x509ca = (X509CA)ca;
url = certProfile.getOCSPServiceLocatorURI();
if(certProfile.getUseDefaultOCSPServiceLocator()){
url = x509ca.getDefaultOCSPServiceLocator();
}
if (StringUtils.isNotEmpty(url)) {
accessLocation = new GeneralName(GeneralName.uniformResourceIdentifier, new DERIA5String(url));
accessList.add(new AccessDescription(AccessDescription.id_ad_ocsp,
accessLocation));
}
org.bouncycastle.asn1.x509.AuthorityInformationAccess ret = null;
if (accessList.size() > 0) {