public final class BigIntegerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static BigInteger |
base64UrlDecode(String magnitudeBase64UrlEncoded)
Decode a big-endian base64 url encoding of a magnitude big integer and transform it as a positive big integer.
|
static byte[] |
toBytesUnsigned(BigInteger x)
Returns the magnitude big-endian byte array of a big integer.
|
public static byte[] toBytesUnsigned(BigInteger x)
x
- a big integerpublic static BigInteger base64UrlDecode(String magnitudeBase64UrlEncoded)
magnitudeBase64UrlEncoded
- big-endian base64 url encoding of a big integer magnitudeCopyright 2011-2015 ForgeRock AS.