public class DeviceOAuthClient extends OAuthClient
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceOAuthClient.DeviceOAuthBuilder |
OAuthClient.OAuthBuilder<T extends OAuthClient.OAuthBuilder<T>>api, baseURL, clientID, clientSecret, executorService, hostName, wwwURL| Modifier | Constructor and Description |
|---|---|
protected |
DeviceOAuthClient(DeviceOAuthClient.DeviceOAuthBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
OAuthToken |
getAccessToken(String deviceCode) |
OAuthToken |
getAccessToken(String deviceCode,
boolean poll) |
DeviceAuthResp |
getDeviceCode() |
DeviceAuthResp |
getDeviceCode(String workspaceID) |
static DeviceOAuthClient |
loadFromConfig(LoadAuthConfig loadConfig) |
OAuthToken |
refreshToken(String refreshToken) |
defaultRetrofit, execute, getAccessToken, getAccessToken, getAccessToken, getOAuthURL, getOAuthURL, getOAuthURL, getOAuthURL, refreshAccessToken, refreshAccessToken, shutdownExecutorprotected DeviceOAuthClient(DeviceOAuthClient.DeviceOAuthBuilder builder)
public static DeviceOAuthClient loadFromConfig(LoadAuthConfig loadConfig)
public DeviceAuthResp getDeviceCode()
public DeviceAuthResp getDeviceCode(String workspaceID)
public OAuthToken getAccessToken(String deviceCode) throws Exception
Exceptionpublic OAuthToken getAccessToken(String deviceCode, boolean poll) throws Exception
Exceptionpublic OAuthToken refreshToken(String refreshToken)
refreshToken in class OAuthClientCopyright © 2025. All rights reserved.