Class DERInteger

java.lang.Object
org.jolokia.jvmagent.security.asn1.DERInteger
All Implemented Interfaces:
DERObject

public class DERInteger extends Object implements DERObject
  • Constructor Details

    • DERInteger

      public DERInteger(int value)
    • DERInteger

      public DERInteger(BigInteger value)
  • Method Details

    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in interface DERObject
    • isPrimitive

      public boolean isPrimitive()
      Description copied from interface: DERObject
      Whether the object is encoded as ASN.1 primitive (see 3.10 "primitive encoding"). If not primitive, the object is constructed, which means its contents octets are the complete encoding of one or more data values.
      Specified by:
      isPrimitive in interface DERObject
      Returns:
      true if the object encodes its value directly
    • asInt

      public int asInt()
    • asBigInteger

      public BigInteger asBigInteger()
    • parse

      public static DERInteger parse(byte[] encoded, int length, int offset)