Class WolfSSLServerSocketFactory


  • public class WolfSSLServerSocketFactory
    extends javax.net.ssl.SSLServerSocketFactory
    wolfSSL implementation of SSLServerSocketFactory
    Author:
    wolfSSL
    • 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.
      • Methods inherited from class javax.net.ssl.SSLServerSocketFactory

        getDefault
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class javax.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 class javax.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 class javax.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 class javax.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 class javax.net.ServerSocketFactory
        Parameters:
        port - port number on which to bind Socket
        backlog - 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 class javax.net.ServerSocketFactory
        Parameters:
        port - port number on which to bind Socket
        backlog - connection backlog for this Socket
        ifAddress - local address to bind Socket
        Returns:
        the new ServerSocket
        Throws:
        java.io.IOException - if socket creation fails.