Class IntegerTLV

    • Constructor Detail

      • IntegerTLV

        public IntegerTLV​(long val)
        Create integer tlv object
        Parameters:
        value - the value part of the TLV object as signed long
      • IntegerTLV

        public IntegerTLV​(java.math.BigInteger bi)
        Create integer tlv object
        Parameters:
        value - the value part of the TLV object as BigInteger
      • IntegerTLV

        public IntegerTLV​(TLV tlv)
                   throws TLVEncodingException
        Copy constructor to convert PrimitiveTLV to typed object Make sure, that the parent is updated with the new reference
        Parameters:
        tlv - the PrimitiveTLV object
        Throws:
        TLVEncodingException
    • Method Detail

      • getBigInteger

        public java.math.BigInteger getBigInteger()
        Return value as BigInteger object
        Returns:
        the valus as BigInteger
      • getLong

        public long getLong()
        Return value as signed integer The value field must not exceed 8 bytes, otherwise a UnsupportedOperationException is raised.
        Returns:
        the value field converted to a signed integer