Class GeneralNames
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<GeneralNameInterface>
,Collection<GeneralNameInterface>
,List<GeneralNameInterface>
,RandomAccess
,SequencedCollection<GeneralNameInterface>
This object class represents the GeneralNames type required in
X509 certificates.
The ASN.1 syntax for this is:
GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName
- Version:
- 1.7
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor for this class.GeneralNames
(DerValue derVal) Create the GeneralNames, decoding from the passed DerValue.GeneralNames
(GeneralNameInterface[] names) Create the GeneralNames -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(DerOutputStream out) Write the extension to the DerOutputStream.Methods inherited from class java.util.Vector
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
GeneralNames
Create the GeneralNames, decoding from the passed DerValue. Caution when using this constructor. It may be broken! Better to call addElement(gni) directly where gni is a GeneralNameInterface object- Parameters:
derVal
- the DerValue to construct the GeneralNames from.- Throws:
GeneralNamesException
- on decoding error.IOException
- on error.
-
GeneralNames
Create the GeneralNames- Parameters:
names
- a non-empty array of names to put into the generalNames- Throws:
GeneralNamesException
-
GeneralNames
public GeneralNames()The default constructor for this class.
-
-
Method Details
-
encode
Write the extension to the DerOutputStream.- Parameters:
out
- the DerOutputStream to write the extension to.- Throws:
GeneralNamesException
- on encoding error.IOException
- on error.
-