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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(SSLConfigurable socket) Configures SSL parameters on anSSLConfigurable.Gets the JSSE cipher suite names to exclude.Gets the JSSE secure transport protocols to exclude.booleanGets 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.voidsetExcludedCipherSuites(String cipherSuites) Sets the JSSE cipher suite names to exclude.voidsetExcludedProtocols(String protocols) Sets the JSSE secure transport protocols to exclude.voidsetHostnameVerification(boolean hostnameVerification) voidsetIncludedCipherSuites(String cipherSuites) Sets the JSSE cipher suite names to include.voidsetIncludedProtocols(String protocols) Sets the JSSE secure transport protocols to include.voidsetNeedClientAuth(Boolean needClientAuth) Sets a flag indicating whether client authentication is required.voidsetWantClientAuth(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
-