Package | Description |
---|---|
io.sphere.sdk.client |
Provides types to connect to the API via HTTPS.
|
Modifier and Type | Class and Description |
---|---|
class |
SphereClientConfig
The full api and auth configuration for a Composable Commerce client.
|
Modifier and Type | Method and Description |
---|---|
SphereAuthConfig |
MySphereAuthConfigBuilder.build() |
SphereAuthConfig |
SphereAuthConfigBuilder.build() |
static SphereAuthConfig |
SphereAuthConfig.of(String projectKey,
String clientId,
String clientSecret) |
static SphereAuthConfig |
SphereAuthConfig.of(String projectKey,
String clientId,
String clientSecret,
String authUrl) |
Modifier and Type | Method and Description |
---|---|
static CompletionStage<String> |
TokensFacade.fetchAccessToken(SphereAuthConfig authConfig) |
static CompletionStage<Tokens> |
TokensFacade.fetchCustomerPasswordFlowTokens(SphereAuthConfig authConfig,
String email,
String password)
Fetches a new access token using the customer password flow.
|
static CompletionStage<Tokens> |
TokensFacade.fetchTokens(SphereAuthConfig authConfig)
Fetches a new access token using the client credentials flow.
|
static TokensSupplier |
TokensSupplier.of(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient) |
static TokensSupplier |
TokensSupplier.of(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient,
List<SolutionInfo> additionalSolutionInfos) |
static MySphereAuthConfigBuilder |
MySphereAuthConfigBuilder.ofAuthConfig(SphereAuthConfig template) |
static SphereAuthConfigBuilder |
SphereAuthConfigBuilder.ofAuthConfig(SphereAuthConfig template) |
static SphereAccessTokenSupplier |
SphereAccessTokenSupplier.ofAutoRefresh(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient)
Provides a token generator which tries to always provide a valid token.
|
static TokensSupplier |
TokensSupplier.ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig,
String email,
String password,
HttpClient httpClient,
boolean closeHttpClient) |
static TokensSupplier |
TokensSupplier.ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig,
String email,
String password,
HttpClient httpClient,
boolean closeHttpClient,
List<SolutionInfo> additionalSolutionInfos) |
static SphereAccessTokenSupplier |
SphereAccessTokenSupplier.ofOneTimeFetchingToken(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient)
Provides a token generator which fetches only one token.
|
Constructor and Description |
---|
InvalidClientCredentialsException(SphereAuthConfig config) |