Class ASN1Primitive

    • Method Detail

      • encodeTo

        public void encodeTo​(java.io.OutputStream output)
                      throws java.io.IOException
        Overrides:
        encodeTo in class ASN1Object
        Throws:
        java.io.IOException
      • encodeTo

        public void encodeTo​(java.io.OutputStream output,
                             java.lang.String encoding)
                      throws java.io.IOException
        Overrides:
        encodeTo in class ASN1Object
        Throws:
        java.io.IOException
      • fromByteArray

        public static ASN1Primitive fromByteArray​(byte[] data)
                                           throws java.io.IOException
        Create a base ASN.1 object from a byte stream.
        Parameters:
        data - the byte stream to parse.
        Returns:
        the base ASN.1 object represented by the byte stream.
        Throws:
        java.io.IOException - if there is a problem parsing the data, or parsing the stream did not exhaust the available data.
      • equals

        public final boolean equals​(java.lang.Object o)
        Overrides:
        equals in class ASN1Object