Package io.dropwizard.logging.common
Class TlsSocketAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
java.lang.Object
io.dropwizard.logging.common.AbstractAppenderFactory<E>
io.dropwizard.logging.common.AbstractOutputStreamAppenderFactory<E>
io.dropwizard.logging.common.TcpSocketAppenderFactory<E>
io.dropwizard.logging.common.TlsSocketAppenderFactory<E>
- All Implemented Interfaces:
Discoverable
,AppenderFactory<E>
public class TlsSocketAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
extends TcpSocketAppenderFactory<E>
An
For more configuration parameters, see
AppenderFactory
implementation which provides an appender that writes events to a TCP socket
secured by the TLS/SSL protocol on the presentation layer.
Configuration Parameters:
Name | Default | Description |
keyStorePath |
(none) | The path to the Java key store which contains the host certificate and private key. |
keyStorePassword |
(none) | The password used to access the key store. |
keyStoreType |
JKS |
The type of key store (usually JKS , PKCS12 , JCEKS ,
Windows-MY , or Windows-ROOT ).
|
keyStoreProvider |
(none) | The JCE provider to use to access the key store. |
trustStorePath |
(none) | The path to the Java key store which contains the CA certificates used to establish trust. |
trustStorePassword |
(none) | The password used to access the trust store. |
trustStoreType |
JKS |
The type of trust store (usually JKS , PKCS12 , JCEKS ,
Windows-MY , or Windows-ROOT ).
|
trustStoreProvider |
(none) | The JCE provider to use to access the trust store. |
jceProvider |
(none) | The name of the JCE provider to use for cryptographic support. |
validateCerts |
false | Whether or not to validate TLS certificates before starting. If enabled, Dropwizard will refuse to start with expired or otherwise invalid certificates. |
validatePeers |
false | Whether or not to validate TLS peer certificates. |
supportedProtocols |
JVM default |
A list of protocols (e.g., SSLv3 , TLSv1 ) which are supported. All
other protocols will be refused.
|
excludedProtocols |
[SSL, SSLv2, SSLv2Hello, SSLv3] |
A list of protocols (e.g., SSLv3 , TLSv1 ) which are excluded. These
protocols will be refused.
|
supportedCipherSuites |
JVM default |
A list of cipher suites (e.g., TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 ) which
are supported. All other cipher suites will be refused
|
excludedCipherSuites |
[.*_(MD5|SHA|SHA1)$] |
A list of cipher suites (e.g., TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 ) which
are excluded. These cipher suites will be refused.
|
TcpSocketAppenderFactory
.- Since:
- 2.0
- See Also:
-
Field Summary
Fields inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
layout, logFormat, threshold, timeZone
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
boolean
boolean
void
setExcludedCipherSuites
(List<String> excludedCipherSuites) void
setExcludedProtocols
(List<String> excludedProtocols) void
setJceProvider
(String jceProvider) void
setKeyStorePassword
(String keyStorePassword) void
setKeyStorePath
(String keyStorePath) void
setKeyStoreProvider
(String keyStoreProvider) void
setKeyStoreType
(String keyStoreType) void
setSupportedCipherSuites
(List<String> supportedCipherSuites) void
setSupportedProtocols
(List<String> supportedProtocols) void
setTrustStorePassword
(String trustStorePassword) void
setTrustStorePath
(String trustStorePath) void
setTrustStoreProvider
(String trustStoreProvider) void
setTrustStoreType
(String trustStoreType) void
setValidateCerts
(boolean validateCerts) void
setValidatePeers
(boolean validatePeers) protected SocketFactory
Methods inherited from class io.dropwizard.logging.common.TcpSocketAppenderFactory
appender, getConnectionTimeout, getHost, getPort, getSendBufferSize, isImmediateFlush, setConnectionTimeout, setHost, setImmediateFlush, setPort, setSendBufferSize
Methods inherited from class io.dropwizard.logging.common.AbstractOutputStreamAppenderFactory
build
Methods inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
buildLayout, getDiscardingThreshold, getFilterFactories, getLayout, getLogFormat, getMessageRate, getQueueSize, getThreshold, getTimeZone, isIncludeCallerData, setDiscardingThreshold, setFilterFactories, setIncludeCallerData, setLayout, setLogFormat, setMessageRate, setNeverBlock, setQueueSize, setThreshold, setTimeZone, setTimeZone, wrapAsync, wrapAsync
-
Constructor Details
-
TlsSocketAppenderFactory
public TlsSocketAppenderFactory()
-
-
Method Details
-
isValidatePeers
public boolean isValidatePeers() -
setValidatePeers
public void setValidatePeers(boolean validatePeers) -
isValidateCerts
public boolean isValidateCerts() -
setValidateCerts
public void setValidateCerts(boolean validateCerts) -
getExcludedCipherSuites
-
setExcludedCipherSuites
-
getSupportedCipherSuites
-
setSupportedCipherSuites
-
getExcludedProtocols
-
setExcludedProtocols
-
getSupportedProtocols
-
setSupportedProtocols
-
getTrustStoreProvider
-
setTrustStoreProvider
-
getTrustStoreType
-
setTrustStoreType
-
getTrustStorePassword
-
setTrustStorePassword
-
getTrustStorePath
-
setTrustStorePath
-
getKeyStoreProvider
-
setKeyStoreProvider
-
getKeyStoreType
-
setKeyStoreType
-
getKeyStorePassword
-
setKeyStorePassword
-
getKeyStorePath
-
setKeyStorePath
-
getJceProvider
-
setJceProvider
-
socketFactory
- Overrides:
socketFactory
in classTcpSocketAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
-