All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.jsse.provider.ProvSSLServerSocketFactory Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for the TLS, including a JSSE provider. The APIs are designed primarily to be used in conjunction with the BC LTS provider but may also be used with other providers providing cryptographic services.

There is a newer version: 2.73.7
Show newest version
package org.bouncycastle.jsse.provider;

import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;

import javax.net.ssl.SSLServerSocketFactory;

class ProvSSLServerSocketFactory
    extends SSLServerSocketFactory
{
    protected final ContextData contextData;

    ProvSSLServerSocketFactory(ContextData contextData)
    {
        super();

        this.contextData = contextData;
    }

    @Override
    public ServerSocket createServerSocket() throws IOException
    {
        return new ProvSSLServerSocket(contextData);
    }

    @Override
    public ServerSocket createServerSocket(int port) throws IOException
    {
        return new ProvSSLServerSocket(contextData, port);
    }

    @Override
    public ServerSocket createServerSocket(int port, int backlog) throws IOException
    {
        return new ProvSSLServerSocket(contextData, port, backlog);
    }

    @Override
    public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
    {
        return new ProvSSLServerSocket(contextData, port, backlog, ifAddress);
    }

    @Override
    public String[] getDefaultCipherSuites()
    {
        return contextData.getContext().getDefaultCipherSuites(false);
    }

    @Override
    public String[] getSupportedCipherSuites()
    {
        return contextData.getContext().getSupportedCipherSuites();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy