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

org.bouncycastle.jsse.provider.ProvSSLSocketWrap_8 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.io.InputStream;
import java.net.Socket;
import java.util.List;
import java.util.function.BiFunction;

import javax.net.ssl.SSLSocket;

class ProvSSLSocketWrap_8
    extends ProvSSLSocketWrap
{
    protected ProvSSLSocketWrap_8(ContextData contextData, Socket s, InputStream consumed, boolean autoClose)
        throws IOException
    {
        super(contextData, s, consumed, autoClose);
    }

    protected ProvSSLSocketWrap_8(ContextData contextData, Socket s, String host, int port, boolean autoClose)
        throws IOException
    {
        super(contextData, s, host, port, autoClose);
    }

    public synchronized void setHandshakeApplicationProtocolSelector(BiFunction, String> selector)
    {
        sslParameters.setSocketAPSelector(JsseUtils_8.importAPSelector(selector));
    }

    public synchronized BiFunction, String> getHandshakeApplicationProtocolSelector()
    {
        return JsseUtils_8.exportAPSelector(sslParameters.getSocketAPSelector());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy