Class PkceUtils


  • public class PkceUtils
    extends Object
    • Constructor Detail

      • PkceUtils

        public PkceUtils()
    • Method Detail

      • generateCodeVerifier

        public static String generateCodeVerifier()
      • encodeCodeChallenge

        public static String encodeCodeChallenge​(String codeVerifier,
                                                 String codeChallengeMethod)
      • validateCodeChallenge

        public static boolean validateCodeChallenge​(String verifier,
                                                    String codeChallenge,
                                                    String codeChallengeMethod)
      • checkParamsForPkceEnforcedClient

        public static void checkParamsForPkceEnforcedClient​(String codeVerifier,
                                                            String codeChallenge,
                                                            String codeChallengeMethod,
                                                            String authUserId,
                                                            String authUsername,
                                                            EventBuilder event,
                                                            Cors cors)
      • checkParamsForPkceNotEnforcedClient

        public static void checkParamsForPkceNotEnforcedClient​(String codeVerifier,
                                                               String codeChallenge,
                                                               String codeChallengeMethod,
                                                               String authUserId,
                                                               String authUsername,
                                                               EventBuilder event,
                                                               Cors cors)