Class PkceAuthHelper


  • public class PkceAuthHelper
    extends Object
    • Constructor Detail

      • PkceAuthHelper

        public PkceAuthHelper()
    • Method Detail

      • isPkceAuthEnabled

        public static boolean isPkceAuthEnabled()
      • isRedirectToHttpLocalhost

        public static boolean isRedirectToHttpLocalhost​(@Nullable
                                                        String redirectUrl)
      • getRequestedScope

        @NotNull
        public static List<Permission> getRequestedScope​(@NotNull
                                                         String scope)
      • getMultinodeTaskStringArg

        @NotNull
        public static String getMultinodeTaskStringArg​(@NotNull
                                                       String codeChallenge,
                                                       @NotNull
                                                       List<Permission> permissions)
      • encodePermissions

        @NotNull
        public static String encodePermissions​(@NotNull
                                               BitSet mask)
      • decodePermissions

        @NotNull
        public static BitSet decodePermissions​(@NotNull
                                               String encodedPermissions)
      • getAuthCodeRedirectUrl

        @NotNull
        public static String getAuthCodeRedirectUrl​(@NotNull
                                                    AuthCodeRequestData authCodeRequestData,
                                                    @NotNull
                                                    String authCode)
      • getCodeChallenge

        @NotNull
        public static String getCodeChallenge​(@NotNull
                                              String codeVerifier)
      • getTokenExpirationDate

        @NotNull
        public static Date getTokenExpirationDate()
      • generateAuthCode

        @NotNull
        public String generateAuthCode()
      • generatePkceTokenId

        @NotNull
        public String generatePkceTokenId()