/**
* returns an array of Strings containing all CRL-DP URL's
* RelativeDistinguishedName not implemented yet!
*/
public String[] getDPURLs() {
ASN1Sequence names;
GeneralName gn;
Iterator i;
String[] res;
int n;
names = getDistributionPointNames();
if (names == null) {
return null;
}
res = new String[names.size()];
for (n = 0, i = names.iterator(); i.hasNext(); n++) {
try {
gn = (GeneralName) i.next();
res[n] = gn.getGeneralName().getValue().toString();
} catch (codec.x509.X509Exception ex) {
res[n] = "<could not decode this URL!>";