Interface ClientAuthenticationStrategy
-
- All Known Implementing Classes:
AbstractClientAuthenticationStrategy,BasicClientAuthenticationStrategy,BearerClientAuthenticationStrategy,CookieAuthenticationStrategy,FormClientAuthenticationStrategy,OAuthClientAuthenticationStrategy
public interface ClientAuthenticationStrategyStrategy pattern for client authentication.The authentication strategy is chosen according to the configured authentication method. It is instantiated with the configured credentials.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceClientAuthenticationStrategy.PostLoginAction<T>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigureHttpClient(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)Configure the Apache HTTP client if necessary.static ClientAuthenticationStrategycreate(ClientConfiguration clientConfiguration)Factory method for implementations.<T> Tlogin(org.apache.http.impl.client.CloseableHttpClient httpClient, ClientAuthenticationStrategy.PostLoginAction<T> andThen)Login to the EDG server if necessary and then perform some action, usually executing an API request.
-
-
-
Method Detail
-
configureHttpClient
void configureHttpClient(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Configure the Apache HTTP client if necessary.
-
create
static ClientAuthenticationStrategy create(ClientConfiguration clientConfiguration)
Factory method for implementations.
-
login
<T> T login(org.apache.http.impl.client.CloseableHttpClient httpClient, ClientAuthenticationStrategy.PostLoginAction<T> andThen)Login to the EDG server if necessary and then perform some action, usually executing an API request.
-
-