Package org.pac4j.jwt.util
Class JWKHelper
- java.lang.Object
-
- org.pac4j.jwt.util.JWKHelper
-
public final class JWKHelper extends java.lang.Object
JWK helper.- Since:
- 1.9.2
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description JWKHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.KeyPair
buildECKeyPairFromJwk(java.lang.String json)
Build the EC key pair from the JWK JSON.static java.security.KeyPair
buildRSAKeyPairFromJwk(java.lang.String json)
Build the RSA key pair from the JWK JSON.static java.lang.String
buildSecretFromJwk(java.lang.String json)
Build the secret from the JWK JSON.
-
-
-
Method Detail
-
buildSecretFromJwk
public static java.lang.String buildSecretFromJwk(java.lang.String json)
Build the secret from the JWK JSON.- Parameters:
json
- the json- Returns:
- the secret
-
buildRSAKeyPairFromJwk
public static java.security.KeyPair buildRSAKeyPairFromJwk(java.lang.String json)
Build the RSA key pair from the JWK JSON.- Parameters:
json
- the json- Returns:
- the key pair
-
buildECKeyPairFromJwk
public static java.security.KeyPair buildECKeyPairFromJwk(java.lang.String json)
Build the EC key pair from the JWK JSON.- Parameters:
json
- the json- Returns:
- the key pair
-
-