Package org.forgerock.json.jose.utils
Class BigIntegerUtils
java.lang.Object
org.forgerock.json.jose.utils.BigIntegerUtils
Utils to complement bit operations not covered by the BigInteger functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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[]
Returns the magnitude big-endian byte array of a big integer.
-
Method Details
-
toBytesUnsigned
Returns the magnitude big-endian byte array of a big integer.- Parameters:
x
- a big integer- Returns:
- the magnitude big-endian byte array of x
-
base64UrlDecode
Decode a big-endian base64 url encoding of a magnitude big integer and transform it as a positive big integer.- Parameters:
magnitudeBase64UrlEncoded
- big-endian base64 url encoding of a big integer magnitude- Returns:
- a positive big integer with the magnitude decoded from thhe
-