Code example for SSLServerSocketFactory

Methods: createServerSocket

    public void handshake(Socket sock) throws IOException {
     * Determines the SSL cipher suites to be enabled. 
     * @param requestedCiphers Comma-separated list of requested ciphers 
     * @param supportedCiphers Array of supported ciphers 
     * @return Array of SSL cipher suites to be enabled, or null if none of the 
     * requested ciphers are supported 
    protected String[] getEnabledCiphers(String requestedCiphers,
                                         String[] supportedCiphers) {
        String[] enabledCiphers = null;
Experience pair programming with AI  Get Codota for Java