Class 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 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 class javax.net.ssl.SSLServerSocket
      • setEnabledCipherSuites

        public void setEnabledCipherSuites​(java.lang.String[] suites)
                                    throws java.lang.IllegalArgumentException
        Specified by:
        setEnabledCipherSuites in class javax.net.ssl.SSLServerSocket
        Throws:
        java.lang.IllegalArgumentException
      • getSupportedCipherSuites

        public java.lang.String[] getSupportedCipherSuites()
        Specified by:
        getSupportedCipherSuites in class javax.net.ssl.SSLServerSocket
      • getSupportedProtocols

        public java.lang.String[] getSupportedProtocols()
        Specified by:
        getSupportedProtocols in class javax.net.ssl.SSLServerSocket
      • getEnabledProtocols

        public java.lang.String[] getEnabledProtocols()
        Specified by:
        getEnabledProtocols in class javax.net.ssl.SSLServerSocket
      • setEnabledProtocols

        public void setEnabledProtocols​(java.lang.String[] protocols)
                                 throws java.lang.IllegalArgumentException
        Specified by:
        setEnabledProtocols in class javax.net.ssl.SSLServerSocket
        Throws:
        java.lang.IllegalArgumentException
      • setNeedClientAuth

        public void setNeedClientAuth​(boolean need)
        Specified by:
        setNeedClientAuth in class javax.net.ssl.SSLServerSocket
      • getNeedClientAuth

        public boolean getNeedClientAuth()
        Specified by:
        getNeedClientAuth in class javax.net.ssl.SSLServerSocket
      • setWantClientAuth

        public void setWantClientAuth​(boolean want)
        Specified by:
        setWantClientAuth in class javax.net.ssl.SSLServerSocket
      • getWantClientAuth

        public boolean getWantClientAuth()
        Specified by:
        getWantClientAuth in class javax.net.ssl.SSLServerSocket
      • setUseClientMode

        public void setUseClientMode​(boolean mode)
                              throws java.lang.IllegalArgumentException
        Specified by:
        setUseClientMode in class javax.net.ssl.SSLServerSocket
        Throws:
        java.lang.IllegalArgumentException
      • getUseClientMode

        public boolean getUseClientMode()
        Specified by:
        getUseClientMode in class javax.net.ssl.SSLServerSocket
      • setEnableSessionCreation

        public void setEnableSessionCreation​(boolean flag)
        Specified by:
        setEnableSessionCreation in class javax.net.ssl.SSLServerSocket
      • getEnableSessionCreation

        public boolean getEnableSessionCreation()
        Specified by:
        getEnableSessionCreation in class javax.net.ssl.SSLServerSocket
      • setSSLParameters

        public void setSSLParameters​(javax.net.ssl.SSLParameters params)
        Set the SSLParameters for this SSLServerSocket.
        Overrides:
        setSSLParameters in class javax.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 class java.net.ServerSocket
        Throws:
        java.io.IOException