Package com.wolfssl.provider.jsse
Class WolfSSLServerSocket
- java.lang.Object
-
- java.net.ServerSocket
-
- javax.net.ssl.SSLServerSocket
-
- com.wolfssl.provider.jsse.WolfSSLServerSocket
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class WolfSSLServerSocket extends javax.net.ssl.SSLServerSocket
wolfSSL implementation of SSLServerSocket- Author:
- wolfSSL
-
-
Constructor Summary
Constructors Constructor Description WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params)
WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params, int port)
WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params, int port, int backlog)
WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params, int port, int backlog, java.net.InetAddress address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socket
accept()
java.lang.String[]
getEnabledCipherSuites()
java.lang.String[]
getEnabledProtocols()
boolean
getEnableSessionCreation()
boolean
getNeedClientAuth()
java.lang.String[]
getSupportedCipherSuites()
java.lang.String[]
getSupportedProtocols()
boolean
getUseClientMode()
boolean
getWantClientAuth()
void
setEnabledCipherSuites(java.lang.String[] suites)
void
setEnabledProtocols(java.lang.String[] protocols)
void
setEnableSessionCreation(boolean flag)
void
setNeedClientAuth(boolean need)
void
setSSLParameters(javax.net.ssl.SSLParameters params)
Set the SSLParameters for this SSLServerSocket.void
setUseClientMode(boolean mode)
void
setWantClientAuth(boolean want)
-
Methods inherited from class java.net.ServerSocket
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, supportedOptions, toString
-
-
-
-
Constructor Detail
-
WolfSSLServerSocket
public WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params) throws java.io.IOException
- Throws:
java.io.IOException
-
WolfSSLServerSocket
public WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params, int port) throws java.io.IOException
- Throws:
java.io.IOException
-
WolfSSLServerSocket
public WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params, int port, int backlog) throws java.io.IOException
- Throws:
java.io.IOException
-
WolfSSLServerSocket
public WolfSSLServerSocket(WolfSSLContext context, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params, int port, int backlog, java.net.InetAddress address) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getEnabledCipherSuites
public java.lang.String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuites
in classjavax.net.ssl.SSLServerSocket
-
setEnabledCipherSuites
public void setEnabledCipherSuites(java.lang.String[] suites) throws java.lang.IllegalArgumentException
- Specified by:
setEnabledCipherSuites
in classjavax.net.ssl.SSLServerSocket
- Throws:
java.lang.IllegalArgumentException
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classjavax.net.ssl.SSLServerSocket
-
getSupportedProtocols
public java.lang.String[] getSupportedProtocols()
- Specified by:
getSupportedProtocols
in classjavax.net.ssl.SSLServerSocket
-
getEnabledProtocols
public java.lang.String[] getEnabledProtocols()
- Specified by:
getEnabledProtocols
in classjavax.net.ssl.SSLServerSocket
-
setEnabledProtocols
public void setEnabledProtocols(java.lang.String[] protocols) throws java.lang.IllegalArgumentException
- Specified by:
setEnabledProtocols
in classjavax.net.ssl.SSLServerSocket
- Throws:
java.lang.IllegalArgumentException
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Specified by:
setNeedClientAuth
in classjavax.net.ssl.SSLServerSocket
-
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuth
in classjavax.net.ssl.SSLServerSocket
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Specified by:
setWantClientAuth
in classjavax.net.ssl.SSLServerSocket
-
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuth
in classjavax.net.ssl.SSLServerSocket
-
setUseClientMode
public void setUseClientMode(boolean mode) throws java.lang.IllegalArgumentException
- Specified by:
setUseClientMode
in classjavax.net.ssl.SSLServerSocket
- Throws:
java.lang.IllegalArgumentException
-
getUseClientMode
public boolean getUseClientMode()
- Specified by:
getUseClientMode
in classjavax.net.ssl.SSLServerSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Specified by:
setEnableSessionCreation
in classjavax.net.ssl.SSLServerSocket
-
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Specified by:
getEnableSessionCreation
in classjavax.net.ssl.SSLServerSocket
-
setSSLParameters
public void setSSLParameters(javax.net.ssl.SSLParameters params)
Set the SSLParameters for this SSLServerSocket.- Overrides:
setSSLParameters
in classjavax.net.ssl.SSLServerSocket
- Parameters:
params
- SSLParameters to set for this SSLSocket object
-
accept
public java.net.Socket accept() throws java.io.IOException
- Overrides:
accept
in classjava.net.ServerSocket
- Throws:
java.io.IOException
-
-