Package org.conscrypt
Class SSLServerSocketImpl
java.lang.Object
java.net.ServerSocket
javax.net.ssl.SSLServerSocket
org.conscrypt.SSLServerSocketImpl
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SSLServerSocketImpl extends SSLServerSocket
SSLServerSocket implementation
-
Constructor Summary
Constructors Modifier Constructor Description protectedSSLServerSocketImpl(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters)CtorprotectedSSLServerSocketImpl(int port, int backlog, SSLParametersImpl sslParameters)CtorprotectedSSLServerSocketImpl(int port, SSLParametersImpl sslParameters)CtorprotectedSSLServerSocketImpl(SSLParametersImpl sslParameters)Ctor -
Method Summary
Modifier and Type Method Description Socketaccept()This method works according to the specification of implemented class.String[]getEnabledCipherSuites()This method works according to the specification of implemented class.String[]getEnabledProtocols()This method works according to the specification of implemented class.booleangetEnableSessionCreation()This method works according to the specification of implemented class.booleangetNeedClientAuth()This method works according to the specification of implemented class.String[]getSupportedCipherSuites()This method works according to the specification of implemented class.String[]getSupportedProtocols()This method works according to the specification of implemented class.booleangetUseClientMode()This method works according to the specification of implemented class.booleangetWantClientAuth()This method works according to the specification of implemented class.voidsetEnabledCipherSuites(String[] suites)This method works according to the specification of implemented class.voidsetEnabledProtocols(String[] protocols)This method works according to the specification of implemented class.voidsetEnableSessionCreation(boolean flag)This method works according to the specification of implemented class.voidsetNeedClientAuth(boolean need)This method works according to the specification of implemented class.voidsetUseClientMode(boolean mode)This method works according to the specification of implemented class.voidsetWantClientAuth(boolean want)This method works according to the specification of implemented class.StringtoString()Returns the string representation of the object.Methods inherited from class java.net.ServerSocket
bind, bind, close, getChannel, getImpl$, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout
-
Constructor Details
-
SSLServerSocketImpl
Ctor- Parameters:
sslParameters- : SSLParameters- Throws:
IOException
-
SSLServerSocketImpl
Ctor- Parameters:
port- : intsslParameters- : SSLParameters- Throws:
IOException
-
SSLServerSocketImpl
protected SSLServerSocketImpl(int port, int backlog, SSLParametersImpl sslParameters) throws IOExceptionCtor- Parameters:
port- : intbacklog- : intsslParameters- : SSLParameters- Throws:
IOException
-
SSLServerSocketImpl
protected SSLServerSocketImpl(int port, int backlog, InetAddress iAddress, SSLParametersImpl sslParameters) throws IOExceptionCtor- Parameters:
port- : intbacklog- : intiAddress- : InetAddresssslParameters- : SSLParameters- Throws:
IOException
-
-
Method Details
-
getSupportedCipherSuites
This method works according to the specification of implemented class.- Specified by:
getSupportedCipherSuitesin classSSLServerSocket- Returns:
- the names of the supported cipher suites.
- See Also:
method documentation for more information
-
getEnabledCipherSuites
This method works according to the specification of implemented class.- Specified by:
getEnabledCipherSuitesin classSSLServerSocket- Returns:
- the names of the enabled cipher suites to be used for new connections.
- See Also:
method documentation for more information
-
setEnabledCipherSuites
This method works according to the specification of implemented class.- Specified by:
setEnabledCipherSuitesin classSSLServerSocket- Parameters:
suites- the names of the to be enabled cipher suites.- See Also:
method documentation for more information
-
getSupportedProtocols
This method works according to the specification of implemented class.- Specified by:
getSupportedProtocolsin classSSLServerSocket- Returns:
- the names of the supported protocols.
- See Also:
method documentation for more information
-
getEnabledProtocols
This method works according to the specification of implemented class.- Specified by:
getEnabledProtocolsin classSSLServerSocket- Returns:
- the names of the enabled protocols to be used for new connections.
- See Also:
method documentation for more information
-
setEnabledProtocols
This method works according to the specification of implemented class.- Specified by:
setEnabledProtocolsin classSSLServerSocket- Parameters:
protocols- the names of the to be enabled protocols.- See Also:
method documentation for more information
-
setUseClientMode
public void setUseClientMode(boolean mode)This method works according to the specification of implemented class.- Specified by:
setUseClientModein classSSLServerSocket- Parameters:
mode-trueif new connections should act in client mode,falseif not.- See Also:
method documentation for more information
-
getUseClientMode
public boolean getUseClientMode()This method works according to the specification of implemented class.- Specified by:
getUseClientModein classSSLServerSocket- Returns:
trueif new connections will act in client mode when handshaking,falseif not.- See Also:
method documentation for more information
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)This method works according to the specification of implemented class.- Specified by:
setNeedClientAuthin classSSLServerSocket- Parameters:
need-trueif client authentication is required,falseif no authentication is needed.- See Also:
method documentation for more information
-
getNeedClientAuth
public boolean getNeedClientAuth()This method works according to the specification of implemented class.- Specified by:
getNeedClientAuthin classSSLServerSocket- Returns:
trueif client authentication is required,falseif no client authentication is needed.- See Also:
method documentation for more information
-
setWantClientAuth
public void setWantClientAuth(boolean want)This method works according to the specification of implemented class.- Specified by:
setWantClientAuthin classSSLServerSocket- Parameters:
want-trueif client authentication should be requested,falseif no authentication is needed.- See Also:
method documentation for more information
-
getWantClientAuth
public boolean getWantClientAuth()This method works according to the specification of implemented class.- Specified by:
getWantClientAuthin classSSLServerSocket- Returns:
trueis client authentication will be requested,falseif no client authentication is needed.- See Also:
method documentation for more information
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)This method works according to the specification of implemented class.- Specified by:
setEnableSessionCreationin classSSLServerSocket- Parameters:
flag-trueif new SSL sessions may be established,falseif existing SSL sessions must be reused.- See Also:
method documentation for more information
-
getEnableSessionCreation
public boolean getEnableSessionCreation()This method works according to the specification of implemented class.- Specified by:
getEnableSessionCreationin classSSLServerSocket- Returns:
trueif new SSL sessions may be established,falseif existing SSL sessions must be reused.- See Also:
method documentation for more information
-
accept
This method works according to the specification of implemented class.- Overrides:
acceptin classServerSocket- Returns:
- the connection representing socket.
- Throws:
IOException- if an error occurs while accepting a new connection.- See Also:
method documentation for more information
-
toString
Returns the string representation of the object.- Overrides:
toStringin classServerSocket- Returns:
- the textual socket representation.
-