How to convert big integer to the following byte array form in Java:
Big Integers are encoded as a sequence of eight-bit bytes, in two's complement notation, transmitted big-endian. If the length of the sequence is not a multiple of eight bytes, then Big Integers SHALL be padded with the minimal number of leading sign-extended bytes to make the length a multiple of eight bytes.
This is to be in terms with KMIP protocol, section 9.1.1.4 Item Value