Methods Summary |
---|
public void | addName(GeneralName name)TODO
encoding = null;
if (generalNames == null) {
generalNames = new ArrayList();
}
generalNames.add(name);
|
public void | dumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)Places the string representation of extension value
into the StringBuffer object.
if (generalNames == null) {
return;
}
for (Iterator it=generalNames.iterator(); it.hasNext();) {
buffer.append(prefix);
buffer.append(it.next());
buffer.append('\n");
}
|
public byte[] | getEncoded()Returns ASN.1 encoded form of this X.509 GeneralNames value.
if (encoding == null) {
encoding = ASN1.encode(this);
}
return encoding;
|
public java.util.List | getNames()Returns the list of values.
if ((generalNames == null) || (generalNames.size() == 0)) {
return null;
}
return new ArrayList(generalNames);
|
public java.util.List | getPairsList()Returns the collection of pairs: (Integer (tag), Object (name value))*
ArrayList result = new ArrayList();
if (generalNames == null) {
return result;
}
Iterator it = generalNames.iterator();
while (it.hasNext()) {
result.add(((GeneralName) it.next()).getAsList());
}
return result;
|