java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.net.ssl.SSLParametersConfiguration
- All Implemented Interfaces:
ContextAware
A configuration of SSL parameters for an
SSLEngine
.- Author:
- Carl Harris, Bruno Harbulot
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(SSLConfigurable socket) Configures SSL parameters on anSSLConfigurable
.Gets the JSSE cipher suite names to exclude.Gets the JSSE secure transport protocols to exclude.boolean
Gets the JSSE cipher suite names to include.Gets the JSSE secure transport protocols to include.Gets a flag indicating whether client authentication is required.Gets a flag indicating whether client authentication is desired.void
setExcludedCipherSuites
(String cipherSuites) Sets the JSSE cipher suite names to exclude.void
setExcludedProtocols
(String protocols) Sets the JSSE secure transport protocols to exclude.void
setHostnameVerification
(boolean hostnameVerification) void
setIncludedCipherSuites
(String cipherSuites) Sets the JSSE cipher suite names to include.void
setIncludedProtocols
(String protocols) Sets the JSSE secure transport protocols to include.void
setNeedClientAuth
(Boolean needClientAuth) Sets a flag indicating whether client authentication is required.void
setWantClientAuth
(Boolean wantClientAuth) Sets a flag indicating whether client authentication is desired.Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
SSLParametersConfiguration
public SSLParametersConfiguration()
-
-
Method Details
-
configure
Configures SSL parameters on anSSLConfigurable
.- Parameters:
socket
- the subject configurable
-
getHostnameVerification
-
setHostnameVerification
-
getIncludedProtocols
Gets the JSSE secure transport protocols to include.- Returns:
- a string containing comma-separated JSSE secure transport protocol
names (e.g.
TLSv1
)
-
setIncludedProtocols
Sets the JSSE secure transport protocols to include.- Parameters:
protocols
- a string containing comma-separated JSSE secure transport protocol names- See Also:
-
getExcludedProtocols
Gets the JSSE secure transport protocols to exclude.- Returns:
- a string containing comma-separated JSSE secure transport protocol
names (e.g.
TLSv1
)
-
setExcludedProtocols
Sets the JSSE secure transport protocols to exclude.- Parameters:
protocols
- a string containing comma-separated JSSE secure transport protocol names- See Also:
-
getIncludedCipherSuites
Gets the JSSE cipher suite names to include.- Returns:
- a string containing comma-separated JSSE cipher suite names (e.g.
TLS_DHE_RSA_WITH_AES_256_CBC_SHA
)
-
setIncludedCipherSuites
Sets the JSSE cipher suite names to include.- Parameters:
cipherSuites
- a string containing comma-separated JSSE cipher suite names- See Also:
-
getExcludedCipherSuites
Gets the JSSE cipher suite names to exclude.- Returns:
- a string containing comma-separated JSSE cipher suite names (e.g.
TLS_DHE_RSA_WITH_AES_256_CBC_SHA
)
-
setExcludedCipherSuites
Sets the JSSE cipher suite names to exclude.- Parameters:
cipherSuites
- a string containing comma-separated JSSE cipher suite names- See Also:
-
isNeedClientAuth
Gets a flag indicating whether client authentication is required.- Returns:
- flag state
-
setNeedClientAuth
Sets a flag indicating whether client authentication is required.- Parameters:
needClientAuth
- the flag state to set
-
isWantClientAuth
Gets a flag indicating whether client authentication is desired.- Returns:
- flag state
-
setWantClientAuth
Sets a flag indicating whether client authentication is desired.- Parameters:
wantClientAuth
- the flag state to set
-