Class GeneralNames
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<GeneralNameInterface>
-
- org.mozilla.jss.netscape.security.x509.GeneralNames
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<GeneralNameInterface>
,java.util.Collection<GeneralNameInterface>
,java.util.List<GeneralNameInterface>
,java.util.RandomAccess
public class GeneralNames extends java.util.Vector<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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Constructor Detail
-
GeneralNames
public GeneralNames(DerValue derVal) throws java.io.IOException, GeneralNamesException
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.java.io.IOException
- on error.
-
GeneralNames
public GeneralNames(GeneralNameInterface[] names) throws GeneralNamesException
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 Detail
-
encode
public void encode(DerOutputStream out) throws java.io.IOException, GeneralNamesException
Write the extension to the DerOutputStream.- Parameters:
out
- the DerOutputStream to write the extension to.- Throws:
GeneralNamesException
- on encoding error.java.io.IOException
- on error.
-
-