Package com.wolfssl.provider.jsse
Class WolfSSLServerSocketFactory
- java.lang.Object
-
- javax.net.ServerSocketFactory
-
- javax.net.ssl.SSLServerSocketFactory
-
- com.wolfssl.provider.jsse.WolfSSLServerSocketFactory
-
public class WolfSSLServerSocketFactory extends javax.net.ssl.SSLServerSocketFactory
wolfSSL implementation of SSLServerSocketFactory- Author:
- wolfSSL
-
-
Constructor Summary
Constructors Constructor Description WolfSSLServerSocketFactory(WolfSSLContext ctx, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.ServerSocket
createServerSocket()
Creates a new unbound SSLServerSocket.java.net.ServerSocket
createServerSocket(int port)
Creates a new SSLServerSocket bound to the specified port.java.net.ServerSocket
createServerSocket(int port, int backlog)
Creates a new SSLServerSocket bound to the specified port, using the specified connection backlog.java.net.ServerSocket
createServerSocket(int port, int backlog, java.net.InetAddress ifAddress)
Creates a new SSLServerSocket bound to the specified port, using the specified connection backlog, and using a local IP.java.lang.String[]
getDefaultCipherSuites()
Returns the default cipher suite list for wolfJSSE.java.lang.String[]
getSupportedCipherSuites()
Returns the supported cipher suite list for this factory.
-
-
-
Constructor Detail
-
WolfSSLServerSocketFactory
public WolfSSLServerSocketFactory(WolfSSLContext ctx, WolfSSLAuthStore authStore, com.wolfssl.provider.jsse.WolfSSLParameters params)
-
-
Method Detail
-
getDefaultCipherSuites
public java.lang.String[] getDefaultCipherSuites()
Returns the default cipher suite list for wolfJSSE.- Specified by:
getDefaultCipherSuites
in classjavax.net.ssl.SSLServerSocketFactory
- Returns:
- default array of cipher suite Strings for wolfSSL
-
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
Returns the supported cipher suite list for this factory.- Specified by:
getSupportedCipherSuites
in classjavax.net.ssl.SSLServerSocketFactory
- Returns:
- array of supported cipher suite Strings
-
createServerSocket
public java.net.ServerSocket createServerSocket() throws java.io.IOException
Creates a new unbound SSLServerSocket.- Overrides:
createServerSocket
in classjavax.net.ServerSocketFactory
- Returns:
- the new ServerSocket
- Throws:
java.io.IOException
- if socket creation fails
-
createServerSocket
public java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
Creates a new SSLServerSocket bound to the specified port.- Specified by:
createServerSocket
in classjavax.net.ServerSocketFactory
- Parameters:
port
- port number on which to bind socket- Returns:
- the new ServerSocket
- Throws:
java.io.IOException
- if socket creation fails.
-
createServerSocket
public java.net.ServerSocket createServerSocket(int port, int backlog) throws java.io.IOException
Creates a new SSLServerSocket bound to the specified port, using the specified connection backlog.- Specified by:
createServerSocket
in classjavax.net.ServerSocketFactory
- Parameters:
port
- port number on which to bind Socketbacklog
- connection backlog for this Socket- Returns:
- the new ServerSocket
- Throws:
java.io.IOException
- if socket creation fails.
-
createServerSocket
public java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress ifAddress) throws java.io.IOException
Creates a new SSLServerSocket bound to the specified port, using the specified connection backlog, and using a local IP.- Specified by:
createServerSocket
in classjavax.net.ServerSocketFactory
- Parameters:
port
- port number on which to bind Socketbacklog
- connection backlog for this SocketifAddress
- local address to bind Socket- Returns:
- the new ServerSocket
- Throws:
java.io.IOException
- if socket creation fails.
-
-