Top Description Methods
ch.qos.logback.core.net.ssl

public Interface SSLConfigurable

Known Direct Implementers
ch.qos.logback.core.net.ssl.SSLConfigurableServerSocket, ch.qos.logback.core.net.ssl.SSLConfigurableSocket

An object that has configurable SSL parameters.

This interface allows us o decouple the SSLParametersConfiguration from SSLSocket and SSLServerSocket to facilitate unit testing.

Authors
Carl Harris, Bruno Harbulot

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

cipher suites (generally a subset of the set returned by getSupportedCipherSuites()); the return value may be an empty array but must never be null
getDefaultCipherSuites
()

Gets the set of cipher suites that the SSL component enables by default.

public String[]

Returns:

protocols (generally a subset of the set returned by getSupportedProtocols()); the return value may be an empty array but must never be null.
getDefaultProtocols
()

Gets the set of protocols that the SSL component enables by default.

public String[]

Returns:

supported cipher suites; the return value may be an empty array but must never be null
getSupportedCipherSuites
()

Gets the set of cipher suites that the SSL component supports.

public String[]

Returns:

protocols supported protocols; the return value may be an empty array but must never be null.
getSupportedProtocols
()

Gets the set of protocols that the SSL component supports.

public void
setEnabledCipherSuites(String[]
the cipher suites to enable
cipherSuites
)

Sets the enabled cipher suites on the SSL component.

public void
setEnabledProtocols(String[]
the protocols to enable
protocols
)

Sets the enabled protocols on the SSL component.

public void
setHostnameVerification(boolean verifyHostname)

public void
setNeedClientAuth(boolean
the flag state to set
state
)

Sets a flag indicating whether the SSL component should require client authentication.

public void
setWantClientAuth(boolean
the flag state to set
state
)

Sets a flag indicating whether the SSL component should request client authentication.

Method Detail

getDefaultCipherSuitesback to summary
public String[] getDefaultCipherSuites()

Gets the set of cipher suites that the SSL component enables by default.

Returns:String[]

cipher suites (generally a subset of the set returned by getSupportedCipherSuites()); the return value may be an empty array but must never be null

getDefaultProtocolsback to summary
public String[] getDefaultProtocols()

Gets the set of protocols that the SSL component enables by default.

Returns:String[]

protocols (generally a subset of the set returned by getSupportedProtocols()); the return value may be an empty array but must never be null.

getSupportedCipherSuitesback to summary
public String[] getSupportedCipherSuites()

Gets the set of cipher suites that the SSL component supports.

Returns:String[]

supported cipher suites; the return value may be an empty array but must never be null

getSupportedProtocolsback to summary
public String[] getSupportedProtocols()

Gets the set of protocols that the SSL component supports.

Returns:String[]

protocols supported protocols; the return value may be an empty array but must never be null.

setEnabledCipherSuitesback to summary
public void setEnabledCipherSuites(String[] cipherSuites)

Sets the enabled cipher suites on the SSL component.

Parameters
cipherSuites:String[]

the cipher suites to enable

setEnabledProtocolsback to summary
public void setEnabledProtocols(String[] protocols)

Sets the enabled protocols on the SSL component.

Parameters
protocols:String[]

the protocols to enable

setHostnameVerificationback to summary
public void setHostnameVerification(boolean verifyHostname)
setNeedClientAuthback to summary
public void setNeedClientAuth(boolean state)

Sets a flag indicating whether the SSL component should require client authentication.

Parameters
state:boolean

the flag state to set

setWantClientAuthback to summary
public void setWantClientAuth(boolean state)

Sets a flag indicating whether the SSL component should request client authentication.

Parameters
state:boolean

the flag state to set