public class JWKUtils extends Object
Constructor and Description |
---|
JWKUtils() |
Modifier and Type | Method and Description |
---|---|
static BigInteger |
base64DecodeUint(String encoded)
Decode an un-signed integer from a
String to a BigInteger object. |
static String |
base64EncodeUint(BigInteger value)
Encode an un-signed integer from a
BigInteger to a String . |
static String |
base64EncodeUint(BigInteger value,
int minimumLength)
Encode an un-signed integer from a
BigInteger to a String . |
public static BigInteger base64DecodeUint(String encoded)
String
to a BigInteger
object.encoded
- the encoded integerBigInteger
representation of the encoded value.public static String base64EncodeUint(BigInteger value)
BigInteger
to a String
.value
- the integer valuepublic static String base64EncodeUint(BigInteger value, int minimumLength)
BigInteger
to a String
.value
- the integer valueminimumLength
- the minimum length of the returned value. A value of -1 indicates there is no minimum.Copyright © 2021. All rights reserved.