Example usage for io.netty.handler.ssl OpenSsl availableCipherSuites

List of usage examples for io.netty.handler.ssl OpenSsl availableCipherSuites

Introduction

In this page you can find the example usage for io.netty.handler.ssl OpenSsl availableCipherSuites.

Prototype

@Deprecated
public static Set<String> availableCipherSuites() 

Source Link

Usage

From source file:ch.uninbf.mcs.tomcatopenssl.net.ssl.open.OpenSslEngine.java

License:Apache License

@Override
public String[] getSupportedCipherSuites() {
    Set<String> availableCipherSuites = OpenSsl.availableCipherSuites();
    return availableCipherSuites.toArray(new String[availableCipherSuites.size()]);
}

From source file:com.floragunn.searchguard.ssl.DefaultSearchGuardKeyStore.java

License:Apache License

private void logOpenSSLInfos() {
    if (OpenSsl.isAvailable()) {
        log.info("Open SSL " + OpenSsl.versionString() + " available");
        log.debug("Open SSL available ciphers " + OpenSsl.availableCipherSuites());
    } else {/*from  ww  w  .ja  v a  2  s .c o  m*/
        log.info(
                "Open SSL not available (this is not an error, we simply fallback to built-in JDK SSL) because of "
                        + OpenSsl.unavailabilityCause());
    }
}

From source file:io.vertx.test.core.SSLHelperTest.java

License:Open Source License

@Test
public void testUseOpenSSLCiphersWhenNotSpecified() throws Exception {
    Set<String> expected = OpenSsl.availableCipherSuites();
    SSLHelper helper = new SSLHelper(
            new HttpClientOptions().setOpenSslEngineOptions(new OpenSSLEngineOptions()), Cert.CLIENT_PEM.get(),
            Trust.SERVER_PEM.get());/*from ww  w  . j  av  a 2s .  co  m*/
    SslContext ctx = helper.getContext((VertxInternal) vertx);
    assertEquals(expected, new HashSet<>(ctx.cipherSuites()));
}