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.com.adaptris.security.keystore.ConfiguredKeystoreThe keystore used with TLS.com.adaptris.core.security.PrivateKeyPasswordProviderThe private key password.Whether or not to trust self signed certificates.com.adaptris.security.keystore.ConfiguredKeystoreThe truststore used with TLSvoidsetKeystore(com.adaptris.security.keystore.ConfiguredKeystore keystore) The keystore used with TLS.voidsetPrivateKeyPassword(com.adaptris.core.security.PrivateKeyPasswordProvider privateKeyPassword) The private key password.voidsetTrustSelfSigned(Boolean trustSelfSigned) Whether or not to trust self signed certificates.voidsetTruststore(com.adaptris.security.keystore.ConfiguredKeystore truststore) The truststore used with TLSprotected org.apache.http.ssl.TrustStrategy<T extends AsyncWithCustomKeystores>
TwithKeystore(com.adaptris.security.keystore.ConfiguredKeystore s) <T extends AsyncWithCustomKeystores>
TwithPrivateKeyPassword(com.adaptris.core.security.PrivateKeyPasswordProvider s) <T extends AsyncWithCustomKeystores>
T<T extends AsyncWithCustomKeystores>
TwithTrustStore(com.adaptris.security.keystore.ConfiguredKeystore s)
-
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
public <T extends AsyncWithCustomKeystores> T withPrivateKeyPassword(com.adaptris.core.security.PrivateKeyPasswordProvider s) -
withTrustStore
public <T extends AsyncWithCustomKeystores> T withTrustStore(com.adaptris.security.keystore.ConfiguredKeystore s) -
withKeystore
public <T extends AsyncWithCustomKeystores> T withKeystore(com.adaptris.security.keystore.ConfiguredKeystore s) -
getTruststore
public com.adaptris.security.keystore.ConfiguredKeystore getTruststore()The truststore used with TLS -
setTruststore
public void setTruststore(com.adaptris.security.keystore.ConfiguredKeystore truststore) The truststore used with TLS -
getKeystore
public com.adaptris.security.keystore.ConfiguredKeystore getKeystore()The keystore used with TLS. -
setKeystore
public void setKeystore(com.adaptris.security.keystore.ConfiguredKeystore keystore) The keystore used with TLS. -
getPrivateKeyPassword
public com.adaptris.core.security.PrivateKeyPasswordProvider getPrivateKeyPassword()The private key password. -
setPrivateKeyPassword
public void setPrivateKeyPassword(com.adaptris.core.security.PrivateKeyPasswordProvider privateKeyPassword) 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.
-