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.voidbind(SocketAddress endpoint) Bind.voidbind(SocketAddress endpoint, int backlog) Bind.voidclose()Close.booleanEquals.Gets the channel.String[]Gets the enabled cipher suites.String[]Gets the enabled protocols.booleanGets the enable session creation.Gets the inet address.intGets the local port.Gets the local socket address.booleanGets the need client auth.intGets the receive buffer size.booleanGets the reuse address.intGets the so timeout.String[]Gets the supported cipher suites.String[]Gets the supported protocols.booleanGets the use client mode.booleanGets the want client auth.inthashCode()Hash code.booleanisBound()Checks if is bound.booleanisClosed()Checks if is closed.voidSets the enabled cipher suites.voidSets the enabled protocols.voidsetEnableSessionCreation(boolean b) Sets the enable session creation.voidsetNeedClientAuth(boolean b) Sets the need client auth.voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets the performance preferences.voidsetReceiveBufferSize(int size) Sets the receive buffer size.voidsetReuseAddress(boolean on) Sets the reuse address.voidsetSoTimeout(int timeout) Sets the so timeout.voidsetUseClientMode(boolean b) Sets the use client mode.voidsetWantClientAuth(boolean b) Sets the want client auth.toString()To string.Methods inherited from class javax.net.ssl.SSLServerSocket
getSSLParameters, setSSLParametersMethods 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:
acceptin classServerSocket- Throws:
IOException
-
bind
Bind.- Overrides:
bindin classServerSocket- Throws:
IOException
-
bind
Bind.- Overrides:
bindin classServerSocket- Throws:
IOException
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classServerSocket- Throws:
IOException
-
equals
-
getChannel
Gets the channel.- Overrides:
getChannelin classServerSocket
-
getInetAddress
Gets the inet address.- Overrides:
getInetAddressin classServerSocket
-
getLocalPort
-
getLocalSocketAddress
Gets the local socket address.- Overrides:
getLocalSocketAddressin classServerSocket
-
getReceiveBufferSize
Gets the receive buffer size.- Overrides:
getReceiveBufferSizein classServerSocket- Throws:
SocketException
-
getReuseAddress
Gets the reuse address.- Overrides:
getReuseAddressin classServerSocket- Throws:
SocketException
-
getSoTimeout
Gets the so timeout.- Overrides:
getSoTimeoutin classServerSocket- Throws:
IOException
-
hashCode
-
isBound
-
getWantClientAuth
public boolean getWantClientAuth()Gets the want client auth.- Specified by:
getWantClientAuthin classSSLServerSocket
-
getNeedClientAuth
public boolean getNeedClientAuth()Gets the need client auth.- Specified by:
getNeedClientAuthin classSSLServerSocket
-
getUseClientMode
public boolean getUseClientMode()Gets the use client mode.- Specified by:
getUseClientModein classSSLServerSocket
-
getEnableSessionCreation
public boolean getEnableSessionCreation()Gets the enable session creation.- Specified by:
getEnableSessionCreationin classSSLServerSocket
-
isClosed
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) Sets the performance preferences.- Overrides:
setPerformancePreferencesin classServerSocket
-
setReceiveBufferSize
Sets the receive buffer size.- Overrides:
setReceiveBufferSizein classServerSocket- Throws:
SocketException
-
setReuseAddress
Sets the reuse address.- Overrides:
setReuseAddressin classServerSocket- Throws:
SocketException
-
setSoTimeout
Sets the so timeout.- Overrides:
setSoTimeoutin classServerSocket- Throws:
SocketException
-
toString
-
setEnabledCipherSuites
Sets the enabled cipher suites.- Specified by:
setEnabledCipherSuitesin classSSLServerSocket
-
setWantClientAuth
public void setWantClientAuth(boolean b) Sets the want client auth.- Specified by:
setWantClientAuthin classSSLServerSocket
-
setNeedClientAuth
public void setNeedClientAuth(boolean b) Sets the need client auth.- Specified by:
setNeedClientAuthin classSSLServerSocket
-
setEnabledProtocols
Sets the enabled protocols.- Specified by:
setEnabledProtocolsin classSSLServerSocket
-
setUseClientMode
public void setUseClientMode(boolean b) Sets the use client mode.- Specified by:
setUseClientModein classSSLServerSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean b) Sets the enable session creation.- Specified by:
setEnableSessionCreationin classSSLServerSocket
-
getSupportedCipherSuites
Gets the supported cipher suites.- Specified by:
getSupportedCipherSuitesin classSSLServerSocket
-
getEnabledCipherSuites
Gets the enabled cipher suites.- Specified by:
getEnabledCipherSuitesin classSSLServerSocket
-
getSupportedProtocols
Gets the supported protocols.- Specified by:
getSupportedProtocolsin classSSLServerSocket
-
getEnabledProtocols
Gets the enabled protocols.- Specified by:
getEnabledProtocolsin classSSLServerSocket
-