public interface SSLConfigurable
This interface allows us o decouple the SSLParametersConfiguration
from SSLSocket
and SSLServerSocket
to facilitate unit
testing.
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getDefaultCipherSuites()
Gets the set of cipher suites that the SSL component enables by default.
|
java.lang.String[] |
getDefaultProtocols()
Gets the set of protocols that the SSL component enables by default.
|
java.lang.String[] |
getSupportedCipherSuites()
Gets the set of cipher suites that the SSL component supports.
|
java.lang.String[] |
getSupportedProtocols()
Gets the set of protocols that the SSL component supports.
|
void |
setEnabledCipherSuites(java.lang.String[] cipherSuites)
Sets the enabled cipher suites on the SSL component.
|
void |
setEnabledProtocols(java.lang.String[] protocols)
Sets the enabled protocols on the SSL component.
|
void |
setNeedClientAuth(boolean state)
Sets a flag indicating whether the SSL component should require
client authentication.
|
void |
setWantClientAuth(boolean state)
Sets a flag indicating whether the SSL component should request
client authentication.
|
java.lang.String[] getDefaultProtocols()
getSupportedProtocols()
); the return value may be
an empty array but must never be null
.java.lang.String[] getSupportedProtocols()
null
.void setEnabledProtocols(java.lang.String[] protocols)
cipherSuites
- the protocols to enablejava.lang.String[] getDefaultCipherSuites()
getSupportedCipherSuites()
); the return value may be
an empty array but must never be null
java.lang.String[] getSupportedCipherSuites()
null
void setEnabledCipherSuites(java.lang.String[] cipherSuites)
cipherSuites
- the cipher suites to enablevoid setNeedClientAuth(boolean state)
state
- the flag state to setvoid setWantClientAuth(boolean state)
state
- the flag state to setCopyright © 2010 - 2020 Adobe. All Rights Reserved