Package io.micronaut.http.ssl
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
Base class for
SslConfiguration
extensions for SSL clients.- Since:
- 3.2.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.http.ssl.SslConfiguration
SslConfiguration.KeyConfiguration, SslConfiguration.KeyStoreConfiguration, SslConfiguration.TrustStoreConfiguration
-
Field Summary
Fields inherited from class io.micronaut.http.ssl.SslConfiguration
buildSelfSigned, DEFAULT_BUILDSELFSIGNED, DEFAULT_ENABLED, DEFAULT_PORT, DEFAULT_PROTOCOL, port, PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setInsecureTrustAllCertificates
(boolean insecureTrustAllCertificates) Methods inherited from class io.micronaut.http.ssl.SslConfiguration
buildSelfSigned, getCiphers, getClientAuthentication, getHandshakeTimeout, getKey, getKeyStore, getPort, getProtocol, getProtocols, getTrustStore, isEnabled, readExisting, setBuildSelfSigned, setCiphers, setClientAuthentication, setEnabled, setHandshakeTimeout, setKey, setKeyStore, setPort, setProtocol, setProtocols, setTrustStore
-
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.
-