Package interlok.http.apache.async
Class AsyncWithCustomKeystores
java.lang.Object
interlok.http.apache.async.AsyncWithCustomKeystores
- All Implemented Interfaces:
HttpAsyncClientBuilderConfig
@ComponentProfile(since="4.5.0",
summary="Allows you to configure custom keystores when building the HttpAsyncClient")
public class AsyncWithCustomKeystores
extends Object
implements HttpAsyncClientBuilderConfig
HttpClientBuilderConfigurator implementation that allows you to customise keystores etc.In the adapter configuration file this class is aliased as apache-http-async-client-builder-with-custom-keystores which is the preferred alternative to the fully qualified classname when building your configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.impl.nio.client.HttpAsyncClientBuilderconfigure(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) Do any additional configuration.The keystore used with TLS.The private key password.Whether or not to trust self signed certificates.The truststore used with TLSvoidsetKeystore(ConfiguredKeystore keystore) The keystore used with TLS.voidsetPrivateKeyPassword(PrivateKeyPasswordProvider privateKeyPassword) The private key password.voidsetTrustSelfSigned(Boolean trustSelfSigned) Whether or not to trust self signed certificates.voidsetTruststore(ConfiguredKeystore truststore) The truststore used with TLSprotected org.apache.http.ssl.TrustStrategy<T extends AsyncWithCustomKeystores>
T<T extends AsyncWithCustomKeystores>
T<T extends AsyncWithCustomKeystores>
T<T extends AsyncWithCustomKeystores>
T
-
Constructor Details
-
AsyncWithCustomKeystores
public AsyncWithCustomKeystores()
-
-
Method Details
-
configure
public org.apache.http.impl.nio.client.HttpAsyncClientBuilder configure(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) throws Exception Description copied from interface:HttpAsyncClientBuilderConfigDo any additional configuration.- Specified by:
configurein interfaceHttpAsyncClientBuilderConfig- Parameters:
builder- the existing builder- Returns:
- a reconfigured builder.
- Throws:
Exception
-
withTrustSelfSigned
-
trustStrategy
protected org.apache.http.ssl.TrustStrategy trustStrategy() -
withPrivateKeyPassword
-
withTrustStore
-
withKeystore
-
getTruststore
The truststore used with TLS -
setTruststore
The truststore used with TLS -
getKeystore
The keystore used with TLS. -
setKeystore
The keystore used with TLS. -
getPrivateKeyPassword
The private key password. -
setPrivateKeyPassword
The private key password. -
getTrustSelfSigned
Whether or not to trust self signed certificates.Defaults to false if not explicitly configured.
-
setTrustSelfSigned
Whether or not to trust self signed certificates.Defaults to false if not explicitly configured.
-