| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_AUTHORIZATION_URL
Represents the default OAuth authorization URL
|
static String |
DEFAULT_TOKEN_URL
Represents the default token URL
|
| Constructor and Description |
|---|
OAuthFlowBuilder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OAuthFlow |
build()
Build the OAuthFlow instance.
|
String |
getAuthorizationURL()
Gets the authorization url.
|
String |
getClientId()
Gets the client id.
|
String |
getClientSecret()
Gets the client secret.
|
static String |
getDefaultAuthorizationUrl()
Gets the default authorization url.
|
static String |
getDefaultTokenUrl()
Gets the default token url.
|
com.smartsheet.api.internal.http.HttpClient |
getHttpClient()
Gets the http client.
|
com.smartsheet.api.internal.json.JsonSerializer |
getJsonSerializer()
Gets the json serializer.
|
String |
getRedirectURL()
Gets the redirect url.
|
String |
getTokenURL()
Gets the token url.
|
OAuthFlowBuilder |
setAuthorizationURL(String authorizationURL)
Set the authorization URL.
|
OAuthFlowBuilder |
setClientId(String clientId)
Set the client ID
|
OAuthFlowBuilder |
setClientSecret(String clientSecret)
Set the client secret.
|
OAuthFlowBuilder |
setHttpClient(com.smartsheet.api.internal.http.HttpClient httpClient)
Set the HttpClient.
|
OAuthFlowBuilder |
setJsonSerializer(com.smartsheet.api.internal.json.JsonSerializer jsonSerializer)
Set the JsonSerializer.
|
OAuthFlowBuilder |
setRedirectURL(String redirectURL)
Set the redirect URL
|
OAuthFlowBuilder |
setTokenURL(String tokenURL)
Set the token URL.
|
public static final String DEFAULT_AUTHORIZATION_URL
Represents the default OAuth authorization URL
It is a constant with value "https://www.smartsheet.com/b/authorize".
public static final String DEFAULT_TOKEN_URL
Represents the default token URL
It is a constant with value "https://api.smartsheet.com/1.1/token".
public OAuthFlowBuilder setHttpClient(com.smartsheet.api.internal.http.HttpClient httpClient)
httpClient - the httpClientpublic OAuthFlowBuilder setJsonSerializer(com.smartsheet.api.internal.json.JsonSerializer jsonSerializer)
Set the JsonSerializer.
jsonSerializer - the JsonSerializerIllegalArgumentException - if any argument is null/empty stringpublic OAuthFlowBuilder setClientId(String clientId)
clientId - the value to setIllegalArgumentException - if any argument is null/empty stringpublic OAuthFlowBuilder setClientSecret(String clientSecret)
clientSecret - the client secretIllegalArgumentException - if any argument is null/empty stringpublic OAuthFlowBuilder setRedirectURL(String redirectURL)
redirectURL - the redirect urlIllegalArgumentException - if any argument is null/empty stringpublic OAuthFlowBuilder setAuthorizationURL(String authorizationURL)
authorizationURL - the authorization URLIllegalArgumentException - if any argument is null/empty stringpublic OAuthFlowBuilder setTokenURL(String tokenURL)
tokenURL - the token urlIllegalArgumentException - if any argument is null/empty stringpublic static String getDefaultAuthorizationUrl()
public static String getDefaultTokenUrl()
public com.smartsheet.api.internal.http.HttpClient getHttpClient()
public com.smartsheet.api.internal.json.JsonSerializer getJsonSerializer()
public String getClientId()
public String getClientSecret()
public String getRedirectURL()
public String getAuthorizationURL()
public String getTokenURL()
public OAuthFlow build()
IllegalArgumentException - if clientId, clientSecret or redirectURL isn't set yet.Copyright © 2014–2017 Smartsheet. All rights reserved.