Class PkceAuthHelper
- java.lang.Object
-
- jetbrains.buildServer.serverSide.oauth.server.pkce.PkceAuthHelper
-
public class PkceAuthHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description PkceAuthHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitSet
decodePermissions(String encodedPermissions)
static String
encodePermissions(BitSet mask)
String
generateAuthCode()
String
generatePkceTokenId()
static String
getAuthCodeRedirectUrl(AuthCodeRequestData authCodeRequestData, String authCode)
static String
getCodeChallenge(String codeVerifier)
static String
getMultinodeTaskStringArg(String codeChallenge, List<Permission> permissions)
static List<Permission>
getRequestedScope(String scope)
static Date
getTokenExpirationDate()
static boolean
isPkceAuthEnabled()
static boolean
isPkceTaskExpired(MultiNodeTasks.SubmittedTask task)
static boolean
isRedirectToHttpLocalhost(String redirectUrl)
-
-
-
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)
-
decodePermissions
@NotNull public static BitSet decodePermissions(@NotNull String encodedPermissions)
-
getAuthCodeRedirectUrl
@NotNull public static String getAuthCodeRedirectUrl(@NotNull AuthCodeRequestData authCodeRequestData, @NotNull String authCode)
-
isPkceTaskExpired
public static boolean isPkceTaskExpired(@NotNull MultiNodeTasks.SubmittedTask task)
-
getTokenExpirationDate
@NotNull public static Date getTokenExpirationDate()
-
generateAuthCode
@NotNull public String generateAuthCode()
-
generatePkceTokenId
@NotNull public String generatePkceTokenId()
-
-