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 BitSetdecodePermissions(String encodedPermissions)static StringencodePermissions(BitSet mask)StringgenerateAuthCode()StringgeneratePkceTokenId()static StringgetAuthCodeRedirectUrl(AuthCodeRequestData authCodeRequestData, String authCode)static StringgetCodeChallenge(String codeVerifier)static StringgetMultinodeTaskStringArg(String codeChallenge, List<Permission> permissions)static List<Permission>getRequestedScope(String scope)static DategetTokenExpirationDate()static booleanisPkceAuthEnabled()static booleanisPkceTaskExpired(MultiNodeTasks.SubmittedTask task)static booleanisRedirectToHttpLocalhost(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()
-
-