public class SessionConfiguration
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionConfiguration.Builder
Builder for
SessionConfiguration |
static class |
SessionConfiguration.EndpointRegion |
static class |
SessionConfiguration.Environment
An Uber API Environment.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SessionConfiguration(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String serverToken,
java.lang.String redirectUri,
SessionConfiguration.EndpointRegion endpointRegion,
SessionConfiguration.Environment environment,
java.util.Collection<Scope> scopes,
java.util.Collection<java.lang.String> customScopes,
java.util.Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClientId()
Gets the Client ID to be used by the SDK for requests.
|
java.lang.String |
getClientSecret()
Gets the Client Secret to be used by the SDK for requests.
|
java.util.Collection<java.lang.String> |
getCustomScopes()
Gets a list of custom scopes that your application must be explicitly whitelisted
for.
|
java.lang.String |
getEndpointHost()
Gets the endpoint host used to hit the Uber API.
|
SessionConfiguration.EndpointRegion |
getEndpointRegion()
Gets the current
SessionConfiguration.EndpointRegion the SDK is using. |
SessionConfiguration.Environment |
getEnvironment()
Gets the environment configured, either
SessionConfiguration.Environment.PRODUCTION or SessionConfiguration.Environment.SANDBOX |
java.util.Locale |
getLocale()
Get the requested language Locale for requests
|
java.lang.String |
getLoginHost()
Gets the login host used to sign in to the Uber API.
|
java.lang.String |
getRedirectUri()
Gets the Redirect URI to be used for implicit grant.
|
java.util.Collection<Scope> |
getScopes()
Gets the
Scope's set for authentication |
java.lang.String |
getServerToken()
Gets the server Token to be used by the SDK for requests
|
SessionConfiguration.Builder |
newBuilder() |
protected SessionConfiguration(@Nonnull
java.lang.String clientId,
@Nonnull
java.lang.String clientSecret,
@Nonnull
java.lang.String serverToken,
@Nonnull
java.lang.String redirectUri,
@Nonnull
SessionConfiguration.EndpointRegion endpointRegion,
@Nonnull
SessionConfiguration.Environment environment,
@Nonnull
java.util.Collection<Scope> scopes,
@Nonnull
java.util.Collection<java.lang.String> customScopes,
@Nonnull
java.util.Locale locale)
public java.lang.String getClientId()
public java.lang.String getClientSecret()
public java.lang.String getServerToken()
public java.lang.String getRedirectUri()
public SessionConfiguration.Environment getEnvironment()
SessionConfiguration.Environment.PRODUCTION or SessionConfiguration.Environment.SANDBOXSessionConfiguration.Environment that is configuredpublic SessionConfiguration.EndpointRegion getEndpointRegion()
SessionConfiguration.EndpointRegion the SDK is using.
Defaults to SessionConfiguration.EndpointRegion.DEFAULT.SessionConfiguration.EndpointRegion the SDK us using.@Nonnull public java.lang.String getEndpointHost()
@Nonnull public java.lang.String getLoginHost()
public java.util.Collection<Scope> getScopes()
Scope's set for authenticationpublic java.util.Collection<java.lang.String> getCustomScopes()
getScopes() instead.public java.util.Locale getLocale()
public SessionConfiguration.Builder newBuilder()