Class PKCS10Attributes

    • Field Summary

      • Fields inherited from class java.util.Vector

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

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      PKCS10Attributes()
      Default constructor for the certificate attribute.
      PKCS10Attributes​(DerInputStream in)
      Create the object, decoding the values from the passed DER stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteAttribute​(java.lang.String name)
      Delete the attribute value.
      void derEncode​(java.io.OutputStream out)
      Encode the attributes in DER form to the stream.
      void encode​(java.io.OutputStream out)
      Encode the attributes in DER form to the stream.
      boolean equals​(java.lang.Object obj)  
      PKCS10Attribute getAttribute​(java.lang.String name)
      Get the attribute value.
      java.util.Enumeration<PKCS10Attribute> getElements()
      Return an enumeration of names of attributes existing within this attribute.
      int hashCode()  
      void setAttribute​(java.lang.String name, PKCS10Attribute attr)
      Set the attribute value.
      • 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

      • PKCS10Attributes

        public PKCS10Attributes()
        Default constructor for the certificate attribute.
      • PKCS10Attributes

        public PKCS10Attributes​(DerInputStream in)
                         throws java.io.IOException
        Create the object, decoding the values from the passed DER stream.
        Parameters:
        in - the DerInputStream to read the attributes from.
        Throws:
        java.io.IOException - on decoding errors.
    • Method Detail

      • encode

        public void encode​(java.io.OutputStream out)
                    throws java.io.IOException
        Encode the attributes in DER form to the stream.
        Parameters:
        out - the OutputStream to marshal the contents to.
        Throws:
        java.io.IOException - on encoding errors.
      • derEncode

        public void derEncode​(java.io.OutputStream out)
                       throws java.io.IOException
        Encode the attributes in DER form to the stream. Implements the DerEncoder interface.
        Specified by:
        derEncode in interface DerEncoder
        Parameters:
        out - the OutputStream to marshal the contents to.
        Throws:
        java.io.IOException - on encoding errors.
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 PKCS10Attribute attr)
                          throws java.io.IOException
        Set the attribute value.
        Throws:
        java.io.IOException
      • getAttribute

        public PKCS10Attribute getAttribute​(java.lang.String name)
                                     throws java.io.IOException
        Get the attribute value.
        Throws:
        java.io.IOException
      • deleteAttribute

        public void deleteAttribute​(java.lang.String name)
                             throws java.io.IOException
        Delete the attribute value.
        Throws:
        java.io.IOException
      • getElements

        public java.util.Enumeration<PKCS10Attribute> getElements()
        Return an enumeration of names of attributes existing within this attribute.
      • hashCode

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

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