Package io.fusionauth.jwks
Class JWKUtils
java.lang.Object
io.fusionauth.jwks.JWKUtils
- Author:
- Daniel DeGroff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigIntegerbase64DecodeUint(String encoded) Decode an un-signed integer from aStringto aBigIntegerobject.static Stringbase64EncodeUint(BigInteger value) Encode an un-signed integer from aBigIntegerto aString.static Stringbase64EncodeUint(BigInteger value, int minimumLength) Encode an un-signed integer from aBigIntegerto aString.
-
Constructor Details
-
JWKUtils
public JWKUtils()
-
-
Method Details
-
base64DecodeUint
Decode an un-signed integer from aStringto aBigIntegerobject.- Parameters:
encoded- the encoded integer- Returns:
- a
BigIntegerrepresentation of the encoded value.
-
base64EncodeUint
Encode an un-signed integer from aBigIntegerto aString.- Parameters:
value- the integer value- Returns:
- a Base64 encoded value of the un-signed integer.
-
base64EncodeUint
Encode an un-signed integer from aBigIntegerto aString.- Parameters:
value- the integer valueminimumLength- the minimum length of the returned value. A value of -1 indicates there is no minimum.- Returns:
- a Base64 encoded value of the un-signed integer.
-