Class CRLExtensions

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Extension>, java.util.Collection<Extension>, java.util.List<Extension>, java.util.RandomAccess

    public class CRLExtensions
    extends java.util.Vector<Extension>
    This class defines the CRL Extensions.
    Version:
    1.4
    Author:
    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 decode​(java.io.InputStream in)
      Decode the extensions from the InputStream.
      void encode​(java.io.OutputStream out, boolean isExplicit)
      Encode the extensions in DER form to the stream.
      boolean equals​(java.lang.Object obj)  
      Extension get​(java.lang.String alias)
      Get the extension with this alias.
      java.util.Enumeration<Extension> getElements()
      Return an enumeration of names of the extensions.
      int hashCode()  
      void set​(java.lang.String alias, Extension obj)
      Set the extension value with this alias.
      • Methods inherited from class java.util.Vector

        add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, forEach, get, 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

      • CRLExtensions

        public CRLExtensions()
        Default constructor.
      • CRLExtensions

        public CRLExtensions​(DerInputStream in)
                      throws java.security.cert.CRLException,
                             X509ExtensionException
        Create the object, decoding the values from the passed DER stream.
        Parameters:
        in - the DerInputStream to read the Extension from.
        Throws:
        java.security.cert.CRLException - on decoding errors.
        X509ExtensionException - on extension handling errors.
    • Method Detail

      • decode

        public void decode​(java.io.InputStream in)
                    throws java.security.cert.CRLException,
                           X509ExtensionException
        Decode the extensions from the InputStream.
        Parameters:
        in - the InputStream to unmarshal the contents from.
        Throws:
        java.security.cert.CRLException - on decoding or validity errors.
        X509ExtensionException - on extension handling errors.
      • encode

        public void encode​(java.io.OutputStream out,
                           boolean isExplicit)
                    throws java.security.cert.CRLException
        Encode the extensions in DER form to the stream.
        Parameters:
        out - the DerOutputStream to marshal the contents to.
        isExplicit - the tag indicating whether this is an entry extension or a CRL extension.
        Throws:
        java.security.cert.CRLException - on encoding errors.
      • set

        public void set​(java.lang.String alias,
                        Extension obj)
                 throws java.io.IOException
        Set the extension value with this alias.
        Parameters:
        alias - the identifier string for the extension to set.
        obj - the Object to set the extension identified by the alias.
        Throws:
        java.io.IOException - on errors.
      • getElements

        public java.util.Enumeration<Extension> getElements()
        Return an enumeration of names of the extensions.
        Returns:
        an enumeration of the names of the extensions in this CRL.
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<Extension>
        Specified by:
        hashCode in interface java.util.List<Extension>
        Overrides:
        hashCode in class java.util.Vector<Extension>
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<Extension>
        Specified by:
        equals in interface java.util.List<Extension>
        Overrides:
        equals in class java.util.Vector<Extension>