- All Known Implementing Classes:
SSLConfigurableServerSocket,SSLConfigurableSocket
public interface SSLConfigurable
An object that has configurable SSL parameters.
This interface allows us o decouple the
SSLParametersConfiguration from SSLSocket
and SSLServerSocket to facilitate unit
testing.
- Author:
- Carl Harris, Bruno Harbulot
-
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the set of cipher suites that the SSL component enables by default.String[]Gets the set of protocols that the SSL component enables by default.String[]Gets the set of cipher suites that the SSL component supports.String[]Gets the set of protocols that the SSL component supports.voidsetEnabledCipherSuites(String[] cipherSuites) Sets the enabled cipher suites on the SSL component.voidsetEnabledProtocols(String[] protocols) Sets the enabled protocols on the SSL component.voidsetHostnameVerification(boolean verifyHostname) voidsetNeedClientAuth(boolean state) Sets a flag indicating whether the SSL component should require client authentication.voidsetWantClientAuth(boolean state) Sets a flag indicating whether the SSL component should request client authentication.
-
Method Details
-
getDefaultProtocols
Gets the set of protocols that the SSL component enables by default.- Returns:
- protocols (generally a subset of the set returned by
getSupportedProtocols()); the return value may be an empty array but must never benull.
-
getSupportedProtocols
Gets the set of protocols that the SSL component supports.- Returns:
- protocols supported protocols; the return value may be an empty array
but must never be
null.
-
setEnabledProtocols
Sets the enabled protocols on the SSL component.- Parameters:
protocols- the protocols to enable
-
getDefaultCipherSuites
Gets the set of cipher suites that the SSL component enables by default.- Returns:
- cipher suites (generally a subset of the set returned by
getSupportedCipherSuites()); the return value may be an empty array but must never benull
-
getSupportedCipherSuites
Gets the set of cipher suites that the SSL component supports.- Returns:
- supported cipher suites; the return value may be an empty array but
must never be
null
-
setEnabledCipherSuites
Sets the enabled cipher suites on the SSL component.- Parameters:
cipherSuites- the cipher suites to enable
-
setNeedClientAuth
Sets a flag indicating whether the SSL component should require client authentication.- Parameters:
state- the flag state to set
-
setWantClientAuth
Sets a flag indicating whether the SSL component should request client authentication.- Parameters:
state- the flag state to set
-
setHostnameVerification
-