Search in sources :

Example 21 with SslContextFactory

use of org.apache.ignite.ssl.SslContextFactory in project ignite by apache.

the class TcpDiscoverySslParametersTest method getConfiguration.

/**
 * {@inheritDoc}
 */
@Override
protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
    IgniteConfiguration cfg = super.getConfiguration(gridName);
    SslContextFactory factory = (SslContextFactory) GridTestUtils.sslTrustedFactory("node01", "trustone");
    factory.setCipherSuites(cipherSuites);
    factory.setProtocols(protocols);
    cfg.setSslContextFactory(factory);
    return cfg;
}
Also used : SslContextFactory(org.apache.ignite.ssl.SslContextFactory) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration)

Aggregations

SslContextFactory (org.apache.ignite.ssl.SslContextFactory)21 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)6 NotNull (org.jetbrains.annotations.NotNull)4 ClientConnectorConfiguration (org.apache.ignite.configuration.ClientConnectorConfiguration)3 SSLContext (javax.net.ssl.SSLContext)2 GridSslContextFactory (org.apache.ignite.internal.client.ssl.GridSslContextFactory)2 Before (org.junit.Before)2 Test (org.junit.jupiter.api.Test)2 Paths (java.nio.file.Paths)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 SQLException (java.sql.SQLException)1 SimpleEntry (java.util.AbstractMap.SimpleEntry)1 ExecutionException (java.util.concurrent.ExecutionException)1 Consumer (java.util.function.Consumer)1 Function (java.util.function.Function)1 Factory (javax.cache.configuration.Factory)1 SSLException (javax.net.ssl.SSLException)1 SSLSocketFactory (javax.net.ssl.SSLSocketFactory)1 ToString (lombok.ToString)1 lombok.val (lombok.val)1