Class 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
     
    Version:
    1.7
    Author:
    Amit Kapoor, Hemma Prafullchandra
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.Vector

        capacityIncrement, elementCount, elementData
      • Fields inherited from class java.util.AbstractList

        modCount
    • 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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
    • 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()
        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.