Class AbstractClientSslConfiguration

java.lang.Object
io.micronaut.http.ssl.SslConfiguration
io.micronaut.http.ssl.AbstractClientSslConfiguration
All Implemented Interfaces:
Toggleable
Direct Known Subclasses:
ClientSslConfiguration, ServiceHttpClientConfiguration.ServiceSslClientConfiguration

public abstract class AbstractClientSslConfiguration extends SslConfiguration
Base class for SslConfiguration extensions for SSL clients.
Since:
3.2.0
Author:
Jonas Konrad
  • Constructor Details

    • AbstractClientSslConfiguration

      public AbstractClientSslConfiguration()
  • Method Details

    • isInsecureTrustAllCertificates

      public boolean isInsecureTrustAllCertificates()
      Returns:
      Whether the client should disable checking of the remote SSL certificate. Only applies if no trust store is configured. Note: This makes the SSL connection insecure, and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.
    • setInsecureTrustAllCertificates

      public void setInsecureTrustAllCertificates(boolean insecureTrustAllCertificates)
      Parameters:
      insecureTrustAllCertificates - Whether the client should disable checking of the remote SSL certificate. Only applies if no trust store is configured. Note: This makes the SSL connection insecure, and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.