public class OAuth2DeviceCodeManager extends OAuth2Manager
baseUri, clientId, gson, httpClient, JSON| Constructor and Description |
|---|
OAuth2DeviceCodeManager(java.lang.String clientId) |
OAuth2DeviceCodeManager(java.lang.String clientId,
okhttp3.OkHttpClient httpClient) |
OAuth2DeviceCodeManager(java.lang.String clientId,
java.lang.String baseUri) |
OAuth2DeviceCodeManager(java.lang.String clientId,
java.lang.String baseUri,
okhttp3.OkHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Either<OAuth2Error,OAuth2TokenResponse> |
fetchToken(java.lang.String code) |
io.vavr.control.Either<OAuth2Error,OAuth2DeviceCodeResponse> |
getDeviceCode(java.util.Collection<Scope> scopes) |
io.vavr.control.Either<OAuth2Error,OAuth2TokenResponse> |
refreshToken(java.lang.String refreshToken) |
decodeValue, encodeValue, getBaseUri, getClientId, getCompleteUri, getHttpClient, getScopesString, mapToJson, post, setBaseUri, setBaseUri, setClientId, setHttpClientpublic OAuth2DeviceCodeManager(java.lang.String clientId)
public OAuth2DeviceCodeManager(java.lang.String clientId,
java.lang.String baseUri)
public OAuth2DeviceCodeManager(java.lang.String clientId,
okhttp3.OkHttpClient httpClient)
public OAuth2DeviceCodeManager(java.lang.String clientId,
java.lang.String baseUri,
okhttp3.OkHttpClient httpClient)
public io.vavr.control.Either<OAuth2Error,OAuth2DeviceCodeResponse> getDeviceCode(java.util.Collection<Scope> scopes) throws java.io.IOException
java.io.IOExceptionpublic io.vavr.control.Either<OAuth2Error,OAuth2TokenResponse> fetchToken(java.lang.String code) throws java.io.IOException
fetchToken in class OAuth2Managerjava.io.IOExceptionpublic io.vavr.control.Either<OAuth2Error,OAuth2TokenResponse> refreshToken(java.lang.String refreshToken) throws java.io.IOException
refreshToken in class OAuth2Managerjava.io.IOException