org.bouncycastle.jsse.provider.ProvSSLServerSocketFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bctls-fips Show documentation
Show all versions of bctls-fips Show documentation
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 FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified and used appropriately.
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 ProvSSLContextSpi context;
ProvSSLServerSocketFactory(ProvSSLContextSpi context)
{
super();
this.context = context;
}
@Override
public ServerSocket createServerSocket() throws IOException
{
return new ProvSSLServerSocket(context, context.createContextData());
}
@Override
public ServerSocket createServerSocket(int port) throws IOException
{
return new ProvSSLServerSocket(context, context.createContextData(), port);
}
@Override
public ServerSocket createServerSocket(int port, int backlog) throws IOException
{
return new ProvSSLServerSocket(context, context.createContextData(), port, backlog);
}
@Override
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
{
return new ProvSSLServerSocket(context, context.createContextData(), port, backlog, ifAddress);
}
@Override
public String[] getDefaultCipherSuites()
{
return context.getDefaultCipherSuites();
}
@Override
public String[] getSupportedCipherSuites()
{
return context.getSupportedCipherSuites();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy