Package io.micronaut.http.ssl
Class AbstractClientSslConfiguration
- java.lang.Object
-
- io.micronaut.http.ssl.SslConfiguration
-
- io.micronaut.http.ssl.AbstractClientSslConfiguration
-
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Direct Known Subclasses:
ClientSslConfiguration
public abstract class AbstractClientSslConfiguration extends SslConfiguration
Base class forSslConfiguration
extensions for SSL clients.- Since:
- 3.2.0
-
-
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
Constructors Constructor Description AbstractClientSslConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInsecureTrustAllCertificates()
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
-
-
-
-
Method Detail
-
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.
-
-