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 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: HttpAsyncClientBuilderConfig
      Do any additional configuration.
      Specified by:
      configure in interface HttpAsyncClientBuilderConfig
      Parameters:
      builder - the existing builder
      Returns:
      a reconfigured builder.
      Throws:
      Exception
    • withTrustSelfSigned

      public <T extends AsyncWithCustomKeystores> T withTrustSelfSigned(Boolean s)
    • 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

      public Boolean getTrustSelfSigned()
      Whether or not to trust self signed certificates.

      Defaults to false if not explicitly configured.

    • setTrustSelfSigned

      public void setTrustSelfSigned(Boolean trustSelfSigned)
      Whether or not to trust self signed certificates.

      Defaults to false if not explicitly configured.