Class SslServerSocket
java.lang.Object
java.net.ServerSocket
javax.net.ssl.SSLServerSocket
ecmwf.common.security.SslServerSocket
-
Constructor Summary
ConstructorsConstructorDescriptionSslServerSocket
(SSLServerSocket decoratee) Instantiates a new ssl server socket. -
Method Summary
Modifier and TypeMethodDescriptionaccept()
Accept.void
bind
(SocketAddress endpoint) Bind.void
bind
(SocketAddress endpoint, int backlog) Bind.void
close()
Close.boolean
Equals.Gets the channel.String[]
Gets the enabled cipher suites.String[]
Gets the enabled protocols.boolean
Gets the enable session creation.Gets the inet address.int
Gets the local port.Gets the local socket address.boolean
Gets the need client auth.int
Gets the receive buffer size.boolean
Gets the reuse address.int
Gets the so timeout.String[]
Gets the supported cipher suites.String[]
Gets the supported protocols.boolean
Gets the use client mode.boolean
Gets the want client auth.int
hashCode()
Hash code.boolean
isBound()
Checks if is bound.boolean
isClosed()
Checks if is closed.void
Sets the enabled cipher suites.void
Sets the enabled protocols.void
setEnableSessionCreation
(boolean b) Sets the enable session creation.void
setNeedClientAuth
(boolean b) Sets the need client auth.void
setPerformancePreferences
(int connectionTime, int latency, int bandwidth) Sets the performance preferences.void
setReceiveBufferSize
(int size) Sets the receive buffer size.void
setReuseAddress
(boolean on) Sets the reuse address.void
setSoTimeout
(int timeout) Sets the so timeout.void
setUseClientMode
(boolean b) Sets the use client mode.void
setWantClientAuth
(boolean b) Sets the want client auth.toString()
To string.Methods inherited from class javax.net.ssl.SSLServerSocket
getSSLParameters, setSSLParameters
Methods inherited from class java.net.ServerSocket
getOption, implAccept, setOption, setSocketFactory, supportedOptions
-
Constructor Details
-
SslServerSocket
Instantiates a new ssl server socket.- Parameters:
decoratee
- the decoratee- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-
Method Details
-
accept
Accept.- Overrides:
accept
in classServerSocket
- Throws:
IOException
-
bind
Bind.- Overrides:
bind
in classServerSocket
- Throws:
IOException
-
bind
Bind.- Overrides:
bind
in classServerSocket
- Throws:
IOException
-
close
Close.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classServerSocket
- Throws:
IOException
-
equals
-
getChannel
Gets the channel.- Overrides:
getChannel
in classServerSocket
-
getInetAddress
Gets the inet address.- Overrides:
getInetAddress
in classServerSocket
-
getLocalPort
-
getLocalSocketAddress
Gets the local socket address.- Overrides:
getLocalSocketAddress
in classServerSocket
-
getReceiveBufferSize
Gets the receive buffer size.- Overrides:
getReceiveBufferSize
in classServerSocket
- Throws:
SocketException
-
getReuseAddress
Gets the reuse address.- Overrides:
getReuseAddress
in classServerSocket
- Throws:
SocketException
-
getSoTimeout
Gets the so timeout.- Overrides:
getSoTimeout
in classServerSocket
- Throws:
IOException
-
hashCode
-
isBound
-
getWantClientAuth
public boolean getWantClientAuth()Gets the want client auth.- Specified by:
getWantClientAuth
in classSSLServerSocket
-
getNeedClientAuth
public boolean getNeedClientAuth()Gets the need client auth.- Specified by:
getNeedClientAuth
in classSSLServerSocket
-
getUseClientMode
public boolean getUseClientMode()Gets the use client mode.- Specified by:
getUseClientMode
in classSSLServerSocket
-
getEnableSessionCreation
public boolean getEnableSessionCreation()Gets the enable session creation.- Specified by:
getEnableSessionCreation
in classSSLServerSocket
-
isClosed
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets the performance preferences.- Overrides:
setPerformancePreferences
in classServerSocket
-
setReceiveBufferSize
Sets the receive buffer size.- Overrides:
setReceiveBufferSize
in classServerSocket
- Throws:
SocketException
-
setReuseAddress
Sets the reuse address.- Overrides:
setReuseAddress
in classServerSocket
- Throws:
SocketException
-
setSoTimeout
Sets the so timeout.- Overrides:
setSoTimeout
in classServerSocket
- Throws:
SocketException
-
toString
-
setEnabledCipherSuites
Sets the enabled cipher suites.- Specified by:
setEnabledCipherSuites
in classSSLServerSocket
-
setWantClientAuth
public void setWantClientAuth(boolean b) Sets the want client auth.- Specified by:
setWantClientAuth
in classSSLServerSocket
-
setNeedClientAuth
public void setNeedClientAuth(boolean b) Sets the need client auth.- Specified by:
setNeedClientAuth
in classSSLServerSocket
-
setEnabledProtocols
Sets the enabled protocols.- Specified by:
setEnabledProtocols
in classSSLServerSocket
-
setUseClientMode
public void setUseClientMode(boolean b) Sets the use client mode.- Specified by:
setUseClientMode
in classSSLServerSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean b) Sets the enable session creation.- Specified by:
setEnableSessionCreation
in classSSLServerSocket
-
getSupportedCipherSuites
Gets the supported cipher suites.- Specified by:
getSupportedCipherSuites
in classSSLServerSocket
-
getEnabledCipherSuites
Gets the enabled cipher suites.- Specified by:
getEnabledCipherSuites
in classSSLServerSocket
-
getSupportedProtocols
Gets the supported protocols.- Specified by:
getSupportedProtocols
in classSSLServerSocket
-
getEnabledProtocols
Gets the enabled protocols.- Specified by:
getEnabledProtocols
in classSSLServerSocket
-