public class GeneralNames extends java.util.Vector<GeneralNameInterface>
The ASN.1 syntax for this is:
GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
Constructor and Description |
---|
GeneralNames()
The default constructor for this class.
|
GeneralNames(DerValue derVal)
Create the GeneralNames, decoding from the passed DerValue.
|
GeneralNames(GeneralNameInterface[] names)
Create the GeneralNames
|
Modifier and Type | Method and Description |
---|---|
void |
encode(DerOutputStream out)
Write the extension to the DerOutputStream.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
public GeneralNames(DerValue derVal) throws java.io.IOException, GeneralNamesException
derVal
- the DerValue to construct the GeneralNames from.GeneralNamesException
- on decoding error.java.io.IOException
- on error.public GeneralNames(GeneralNameInterface[] names) throws GeneralNamesException
names
- a non-empty array of names to put into the
generalNamesGeneralNamesException
public GeneralNames()
public void encode(DerOutputStream out) throws java.io.IOException, GeneralNamesException
out
- the DerOutputStream to write the extension to.GeneralNamesException
- on encoding error.java.io.IOException
- on error.