Package org.pac4j.jwt.util
Class JWKHelper
java.lang.Object
org.pac4j.jwt.util.JWKHelper
JWK helper.
- Since:
- 1.9.2
- Author:
- Jerome Leleu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyPair
buildECKeyPairFromJwk
(String json) Build the EC key pair from the JWK JSON.static KeyPair
buildRSAKeyPairFromJwk
(String json) Build the RSA key pair from the JWK JSON.static String
buildSecretFromJwk
(String json) Build the secret from the JWK JSON.
-
Constructor Details
-
JWKHelper
public JWKHelper()
-
-
Method Details
-
buildSecretFromJwk
Build the secret from the JWK JSON.- Parameters:
json
- the json- Returns:
- the secret
-
buildRSAKeyPairFromJwk
Build the RSA key pair from the JWK JSON.- Parameters:
json
- the json- Returns:
- the key pair
-
buildECKeyPairFromJwk
Build the EC key pair from the JWK JSON.- Parameters:
json
- the json- Returns:
- the key pair
-