org.bouncycastle.jsse.provider.ProvSSLSocketDirect_8 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.UnknownHostException;
import java.util.List;
import java.util.function.BiFunction;
import javax.net.ssl.SSLSocket;
class ProvSSLSocketDirect_8
extends ProvSSLSocketDirect
{
/** This constructor is the one used (only) by ProvSSLServerSocket */
ProvSSLSocketDirect_8(ContextData contextData, boolean enableSessionCreation,
boolean useClientMode, ProvSSLParameters sslParameters)
{
super(contextData, enableSessionCreation, useClientMode, sslParameters);
}
protected ProvSSLSocketDirect_8(ContextData contextData)
{
super(contextData);
}
protected ProvSSLSocketDirect_8(ContextData contextData, InetAddress address, int port,
InetAddress clientAddress, int clientPort) throws IOException
{
super(contextData, address, port, clientAddress, clientPort);
}
protected ProvSSLSocketDirect_8(ContextData contextData, InetAddress address, int port)
throws IOException
{
super(contextData, address, port);
}
protected ProvSSLSocketDirect_8(ContextData contextData, String host, int port, InetAddress clientAddress, int clientPort)
throws IOException, UnknownHostException
{
super(contextData, host, port, clientAddress, clientPort);
}
protected ProvSSLSocketDirect_8(ContextData contextData, String host, int port)
throws IOException, UnknownHostException
{
super(contextData, host, port);
}
// An SSLSocket method from JDK 9 (and then 8u251)
public synchronized void setHandshakeApplicationProtocolSelector(BiFunction, String> selector)
{
sslParameters.setSocketAPSelector(JsseUtils_8.importAPSelector(selector));
}
// An SSLSocket method from JDK 9 (and then 8u251)
public synchronized BiFunction, String> getHandshakeApplicationProtocolSelector()
{
return JsseUtils_8.exportAPSelector(sslParameters.getSocketAPSelector());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy