public interface TokensSupplier extends AutoCloseable, Supplier<CompletionStage<Tokens>>
Modifier and Type | Method and Description |
---|---|
void |
close() |
CompletionStage<Tokens> |
get() |
static TokensSupplier |
of(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient) |
static TokensSupplier |
of(SphereAuthConfig config,
HttpClient httpClient,
boolean closeHttpClient,
List<SolutionInfo> additionalSolutionInfos) |
static TokensSupplier |
ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig,
String email,
String password,
HttpClient httpClient,
boolean closeHttpClient) |
static TokensSupplier |
ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig,
String email,
String password,
HttpClient httpClient,
boolean closeHttpClient,
List<SolutionInfo> additionalSolutionInfos) |
CompletionStage<Tokens> get()
get
in interface Supplier<CompletionStage<Tokens>>
void close()
close
in interface AutoCloseable
static TokensSupplier of(SphereAuthConfig config, HttpClient httpClient, boolean closeHttpClient)
static TokensSupplier of(SphereAuthConfig config, HttpClient httpClient, boolean closeHttpClient, List<SolutionInfo> additionalSolutionInfos)
static TokensSupplier ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig, String email, String password, HttpClient httpClient, boolean closeHttpClient)
static TokensSupplier ofCustomerPasswordFlowTokens(SphereAuthConfig authConfig, String email, String password, HttpClient httpClient, boolean closeHttpClient, List<SolutionInfo> additionalSolutionInfos)