Class DerParser.Asn1Object

java.lang.Object
org.elasticsearch.common.ssl.DerParser.Asn1Object
Enclosing class:
DerParser

public static class DerParser.Asn1Object extends Object
An ASN.1 TLV. The object is not parsed. It can only handle integers.
  • Field Details

    • type

      protected final int type
    • length

      protected final int length
    • value

      protected final byte[] value
    • tag

      protected final int tag
  • Method Details

    • getType

      public int getType()
    • getLength

      public int getLength()
    • getValue

      public byte[] getValue()
    • isConstructed

      public boolean isConstructed()
    • getParser

      public DerParser getParser() throws IOException
      For constructed field, return a parser for its content.
      Returns:
      A parser for the construct.
      Throws:
      IOException
    • getInteger

      public BigInteger getInteger() throws IOException
      Get the value as integer
      Returns:
      BigInteger
      Throws:
      IOException
    • getString

      public String getString() throws IOException
      Throws:
      IOException
    • getOid

      public String getOid() throws IOException
      Throws:
      IOException