public class SSLConfigurableSocket extends java.lang.Object implements SSLConfigurable
SSLConfigurable
wrapper for an SSLSocket
.Constructor and Description |
---|
SSLConfigurableSocket(javax.net.ssl.SSLSocket delegate) |
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[] suites)
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.
|
public SSLConfigurableSocket(javax.net.ssl.SSLSocket delegate)
public java.lang.String[] getDefaultProtocols()
SSLConfigurable
getDefaultProtocols
in interface SSLConfigurable
SSLConfigurable.getSupportedProtocols()
); the return value may be
an empty array but must never be null
.public java.lang.String[] getSupportedProtocols()
SSLConfigurable
getSupportedProtocols
in interface SSLConfigurable
null
.public void setEnabledProtocols(java.lang.String[] protocols)
SSLConfigurable
setEnabledProtocols
in interface SSLConfigurable
public java.lang.String[] getDefaultCipherSuites()
SSLConfigurable
getDefaultCipherSuites
in interface SSLConfigurable
SSLConfigurable.getSupportedCipherSuites()
); the return value may be
an empty array but must never be null
public java.lang.String[] getSupportedCipherSuites()
SSLConfigurable
getSupportedCipherSuites
in interface SSLConfigurable
null
public void setEnabledCipherSuites(java.lang.String[] suites)
SSLConfigurable
setEnabledCipherSuites
in interface SSLConfigurable
suites
- the cipher suites to enablepublic void setNeedClientAuth(boolean state)
SSLConfigurable
setNeedClientAuth
in interface SSLConfigurable
state
- the flag state to setpublic void setWantClientAuth(boolean state)
SSLConfigurable
setWantClientAuth
in interface SSLConfigurable
state
- the flag state to setCopyright © 2010 - 2020 Adobe. All Rights Reserved