java.lang.Object
iu.crypt.UnsignedBigInteger
Encodes
BigInteger values from JCE crypto objects in the formats
specified by RFC-7518 JWA.-
Method Summary
Modifier and TypeMethodDescription(package private) static BigIntegerbigInt(byte[] binary) Converts binary to unsigned big-endianBigInteger.(package private) static byte[]bigInt(BigInteger bigInteger) Converts an unsigned big-endianBigIntegerto binary, omitting the sign bit if necessary.
-
Method Details
-
bigInt
Converts an unsigned big-endianBigIntegerto binary, omitting the sign bit if necessary.- Parameters:
bigInteger- unsigned big-endianBigInteger- Returns:
- binary
-
bigInt
Converts binary to unsigned big-endianBigInteger.- Parameters:
binary- binary- Returns:
- unsigned big-endian
BigInteger
-