public class PKCEOAuthClient extends OAuthClient
| Modifier and Type | Class and Description |
|---|---|
static class |
PKCEOAuthClient.CodeChallengeMethod |
static class |
PKCEOAuthClient.PKCEOAuthBuilder |
OAuthClient.OAuthBuilder<T extends OAuthClient.OAuthBuilder<T>>api, baseURL, clientID, clientSecret, executorService, hostName| Modifier | Constructor and Description |
|---|---|
protected |
PKCEOAuthClient(PKCEOAuthClient.PKCEOAuthBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
GetPKCEAuthURLResp |
genOAuthURL(String redirectURI,
String state) |
GetPKCEAuthURLResp |
genOAuthURL(String redirectURI,
String state,
PKCEOAuthClient.CodeChallengeMethod codeChallengeMethod) |
GetPKCEAuthURLResp |
genOAuthURL(String redirectURI,
String state,
PKCEOAuthClient.CodeChallengeMethod codeChallengeMethod,
String workspaceID) |
GetPKCEAuthURLResp |
genOAuthURL(String redirectURI,
String state,
String workspaceID) |
static String |
genS256CodeChallenge(String codeVerifier) |
OAuthToken |
getAccessToken(String code,
String redirectURI,
String codeVerifier) |
static PKCEOAuthClient |
loadFromConfig(LoadAuthConfig loadConfig) |
OAuthToken |
refreshToken(String refreshToken) |
defaultRetrofit, execute, getAccessToken, getAccessToken, getAccessToken, getOAuthURL, getOAuthURL, getOAuthURL, getOAuthURL, refreshAccessToken, refreshAccessToken, shutdownExecutorprotected PKCEOAuthClient(PKCEOAuthClient.PKCEOAuthBuilder builder)
public static PKCEOAuthClient loadFromConfig(LoadAuthConfig loadConfig)
public GetPKCEAuthURLResp genOAuthURL(@NotNull String redirectURI, String state)
public GetPKCEAuthURLResp genOAuthURL(@NotNull String redirectURI, String state, @NotNull String workspaceID)
public GetPKCEAuthURLResp genOAuthURL(@NotNull String redirectURI, String state, @NotNull PKCEOAuthClient.CodeChallengeMethod codeChallengeMethod)
public GetPKCEAuthURLResp genOAuthURL(@NotNull String redirectURI, String state, @NotNull PKCEOAuthClient.CodeChallengeMethod codeChallengeMethod, @NotNull String workspaceID)
public OAuthToken getAccessToken(@NotNull String code, @NotNull String redirectURI, @Nullable String codeVerifier)
public OAuthToken refreshToken(String refreshToken)
refreshToken in class OAuthClientpublic static String genS256CodeChallenge(String codeVerifier) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionCopyright © 2025. All rights reserved.