Package org.keycloak.protocol.oidc.utils
Class PkceUtils
java.lang.Object
org.keycloak.protocol.oidc.utils.PkceUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkParamsForPkceEnforcedClient
(String codeVerifier, String codeChallenge, String codeChallengeMethod, String authUserId, String authUsername, EventBuilder event, Cors cors) static void
checkParamsForPkceNotEnforcedClient
(String codeVerifier, String codeChallenge, String codeChallengeMethod, String authUserId, String authUsername, EventBuilder event, Cors cors) static String
encodeCodeChallenge
(String codeVerifier, String codeChallengeMethod) static String
static String
generateS256CodeChallenge
(String codeVerifier) static boolean
validateCodeChallenge
(String verifier, String codeChallenge, String codeChallengeMethod) static void
verifyCodeVerifier
(String codeVerifier, String codeChallenge, String codeChallengeMethod, String authUserId, String authUsername, EventBuilder event, Cors cors)
-
Constructor Details
-
PkceUtils
public PkceUtils()
-
-
Method Details
-
generateCodeVerifier
-
encodeCodeChallenge
-
generateS256CodeChallenge
- Throws:
HashException
-
validateCodeChallenge
-
checkParamsForPkceEnforcedClient
-
checkParamsForPkceNotEnforcedClient
-
verifyCodeVerifier
-