Package | Description |
---|---|
io.sphere.sdk.client |
Provides types to connect to the API via HTTPS.
|
Modifier and Type | Method and Description |
---|---|
static SphereAccessTokenSupplier |
SphereAccessTokenSupplier.ofAutoRefresh(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient)
Provides a token generator which tries to always provide a valid token.
|
static SphereAccessTokenSupplier |
SphereAccessTokenSupplier.ofConstantToken(String token)
Provides a token generator which just returns a fixed token, so the client is only usable
for the live time of this token.
|
static SphereAccessTokenSupplier |
SphereAccessTokenSupplier.ofOneTimeFetchingToken(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient)
Provides a token generator which fetches only one token.
|
Modifier and Type | Method and Description |
---|---|
default SphereClient |
SphereClientFactory.createClient(SphereApiConfig config,
SphereAccessTokenSupplier tokenSupplier)
Creates a client with a custom service to provide access tokens.
|
static SphereClient |
SphereClient.of(SphereApiConfig config,
HttpClient httpClient,
SphereAccessTokenSupplier tokenSupplier)
Raw client creation.
|
static SphereClient |
SphereClient.of(SphereApiConfig config,
HttpClient httpClient,
SphereAccessTokenSupplier tokenSupplier,
List<SolutionInfo> additionalSolutionInfos)
Raw client creation.
|