Class OAuthClientAuthenticationStrategy
- java.lang.Object
-
- org.topbraidlive.client.java.impl.AbstractClientAuthenticationStrategy<OAuthClientCredentials>
-
- org.topbraidlive.client.java.impl.OAuthClientAuthenticationStrategy
-
- All Implemented Interfaces:
ClientAuthenticationStrategy
public final class OAuthClientAuthenticationStrategy extends AbstractClientAuthenticationStrategy<OAuthClientCredentials>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.topbraidlive.client.java.impl.ClientAuthenticationStrategy
ClientAuthenticationStrategy.PostLoginAction<T>
-
-
Constructor Summary
Constructors Constructor Description OAuthClientAuthenticationStrategy(OAuthClientCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureHttpClient(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Configure the Apache HTTP client if necessary.<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.-
Methods inherited from class org.topbraidlive.client.java.impl.AbstractClientAuthenticationStrategy
getCredentials
-
-
-
-
Constructor Detail
-
OAuthClientAuthenticationStrategy
public OAuthClientAuthenticationStrategy(OAuthClientCredentials credentials)
-
-
Method Detail
-
configureHttpClient
public final void configureHttpClient(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Description copied from interface:ClientAuthenticationStrategy
Configure the Apache HTTP client if necessary.
-
login
public final <T> T login(org.apache.http.impl.client.CloseableHttpClient httpClient, ClientAuthenticationStrategy.PostLoginAction<T> andThen)
Description copied from interface:ClientAuthenticationStrategy
Login to the EDG server if necessary and then perform some action, usually executing an API request.
-
-