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

org.bouncycastle.jsse.provider.ProvSSLEngine_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 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.

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

import java.util.List;
import java.util.function.BiFunction;

import javax.net.ssl.SSLEngine;

class ProvSSLEngine_8
    extends ProvSSLEngine
{
    protected ProvSSLEngine_8(ContextData contextData)
    {
        super(contextData);
    }

    protected ProvSSLEngine_8(ContextData contextData, String peerHost, int peerPort)
    {
        super(contextData, peerHost, peerPort);
    }

    // An SSLEngine method from JDK 9 (and then 8u251)
    public synchronized void setHandshakeApplicationProtocolSelector(BiFunction, String> selector)
    {
        sslParameters.setEngineAPSelector(JsseUtils_8.importAPSelector(selector));
    }

    // An SSLEngine method from JDK 9 (and then 8u251)
    public synchronized BiFunction, String> getHandshakeApplicationProtocolSelector()
    {
        return JsseUtils_8.exportAPSelector(sslParameters.getEngineAPSelector());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy