public static class SessionConfiguration.Builder
extends java.lang.Object
SessionConfiguration| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SessionConfiguration |
build()
Constructs
SessionConfiguration from set Builder parameters. |
SessionConfiguration.Builder |
setClientId(java.lang.String clientId)
The Uber API requires a registered clientId to be sent along with API requests and Deeplinks.
|
SessionConfiguration.Builder |
setClientSecret(java.lang.String clientSecret)
The Uber API requires a registered clientSecret to be used for Authentication.
|
SessionConfiguration.Builder |
setCustomScopes(java.util.Collection<java.lang.String> scopes)
Sets a list of custom scopes that your application must be explicitly whitelisted
for.
|
SessionConfiguration.Builder |
setEnvironment(SessionConfiguration.Environment environment)
Sets the
SessionConfiguration.Environment to be used for API requests |
SessionConfiguration.Builder |
setLocale(java.util.Locale locale)
Sets the requested Locale through the Accept-Language HTTP header.
|
SessionConfiguration.Builder |
setRedirectUri(java.lang.String redirectUri)
Sets the redirect URI that is registered for this application.
|
SessionConfiguration.Builder |
setScopes(java.util.Collection<Scope> scopes)
Sets the Scope Collection to be used when requesting authentication
|
SessionConfiguration.Builder |
setServerToken(java.lang.String serverToken)
The Uber API can use a server token for some endpoints.
|
public SessionConfiguration.Builder setClientId(@Nonnull java.lang.String clientId)
clientId - to be used for identificationpublic SessionConfiguration.Builder setClientSecret(@Nonnull java.lang.String clientSecret)
clientSecret - to be used for identificationpublic SessionConfiguration.Builder setServerToken(@Nonnull java.lang.String serverToken)
serverToken - to be used for identificationpublic SessionConfiguration.Builder setRedirectUri(@Nonnull java.lang.String redirectUri)
redirectUri - the redirect URI String for this application.public SessionConfiguration.Builder setEnvironment(@Nonnull SessionConfiguration.Environment environment)
SessionConfiguration.Environment to be used for API requestsenvironment - to be setpublic SessionConfiguration.Builder setScopes(@Nonnull java.util.Collection<Scope> scopes)
scopes - to be setpublic SessionConfiguration.Builder setCustomScopes(@Nonnull java.util.Collection<java.lang.String> scopes)
setScopes(Collection) instead.public SessionConfiguration.Builder setLocale(@Nonnull java.util.Locale locale)
public SessionConfiguration build()
SessionConfiguration from set Builder parameters.SessionConfigurationjava.lang.NullPointerException - when clientId has not been set