io.netty.handler.ssl.OpenSsl.availableOpenSslCipherSuites()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中io.netty.handler.ssl.OpenSsl.availableOpenSslCipherSuites()方法的一些代码示例,展示了OpenSsl.availableOpenSslCipherSuites()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OpenSsl.availableOpenSslCipherSuites()方法的具体详情如下:
包路径:io.netty.handler.ssl.OpenSsl
类名称:OpenSsl
方法名:availableOpenSslCipherSuites

OpenSsl.availableOpenSslCipherSuites介绍

[英]Returns all the available OpenSSL cipher suites. Please note that the returned array may include the cipher suites that are insecure or non-functional.
[中]

代码示例

代码示例来源:origin: redisson/redisson

/**
 * @deprecated use {@link #availableOpenSslCipherSuites()}
 */
@Deprecated
public static Set<String> availableCipherSuites() {
  return availableOpenSslCipherSuites();
}

代码示例来源:origin: wildfly/wildfly

/**
 * @deprecated use {@link #availableOpenSslCipherSuites()}
 */
@Deprecated
public static Set<String> availableCipherSuites() {
  return availableOpenSslCipherSuites();
}

代码示例来源:origin: eclipse-vertx/vert.x

builder.sslProvider(SslProvider.OPENSSL);
if (cipherSuites == null || cipherSuites.isEmpty()) {
 cipherSuites = OpenSsl.availableOpenSslCipherSuites();

代码示例来源:origin: eclipse-vertx/vert.x

@Test
public void testUseOpenSSLCiphersWhenNotSpecified() throws Exception {
 Set<String> expected = OpenSsl.availableOpenSslCipherSuites();
 SSLHelper helper = new SSLHelper(
   new HttpClientOptions().setOpenSslEngineOptions(new OpenSSLEngineOptions()),
   Cert.CLIENT_PEM.get(),
   Trust.SERVER_PEM.get());
 SslContext ctx = helper.getContext((VertxInternal) vertx);
 assertEquals(expected, new HashSet<>(ctx.cipherSuites()));
}

代码示例来源:origin: io.netty/netty-handler

/**
 * @deprecated use {@link #availableOpenSslCipherSuites()}
 */
@Deprecated
public static Set<String> availableCipherSuites() {
  return availableOpenSslCipherSuites();
}

代码示例来源:origin: io.vertx/vertx-core

builder.sslProvider(SslProvider.OPENSSL);
if (cipherSuites == null || cipherSuites.isEmpty()) {
 cipherSuites = OpenSsl.availableOpenSslCipherSuites();

代码示例来源:origin: apache/activemq-artemis

/**
 * @deprecated use {@link #availableOpenSslCipherSuites()}
 */
@Deprecated
public static Set<String> availableCipherSuites() {
  return availableOpenSslCipherSuites();
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * @deprecated use {@link #availableOpenSslCipherSuites()}
 */
@Deprecated
public static Set<String> availableCipherSuites() {
  return availableOpenSslCipherSuites();
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

/**
 * @deprecated use {@link #availableOpenSslCipherSuites()}
 */
@Deprecated
public static Set<String> availableCipherSuites() {
  return availableOpenSslCipherSuites();
}

代码示例来源:origin: io.vertx/vertx-core

@Test
public void testUseOpenSSLCiphersWhenNotSpecified() throws Exception {
 Set<String> expected = OpenSsl.availableOpenSslCipherSuites();
 SSLHelper helper = new SSLHelper(
   new HttpClientOptions().setOpenSslEngineOptions(new OpenSSLEngineOptions()),
   Cert.CLIENT_PEM.get(),
   Trust.SERVER_PEM.get());
 SslContext ctx = helper.getContext((VertxInternal) vertx);
 assertEquals(expected, new HashSet<>(ctx.cipherSuites()));
}

代码示例来源:origin: logstash-plugins/logstash-input-beats

logger.debug("Available ciphers:" + Arrays.toString(OpenSsl.availableOpenSslCipherSuites().toArray()));
logger.debug("Ciphers:  " + Arrays.toString(ciphers));

代码示例来源:origin: floragunncom/search-guard-ssl

private void logOpenSSLInfos() {
  if (OpenSsl.isAvailable()) {
    log.info("OpenSSL " + OpenSsl.versionString() + " (" + OpenSsl.version() + ") available");
    if (OpenSsl.version() < 0x10002000L) {
      log.warn(
          "Outdated OpenSSL version detected. You should update to 1.0.2k or later. Currently installed: "
              + OpenSsl.versionString());
    }
    if (!OpenSsl.supportsHostnameValidation()) {
      log.warn("Your OpenSSL version " + OpenSsl.versionString()
          + " does not support hostname verification. You should update to 1.0.2k or later.");
    }
    log.debug("OpenSSL available ciphers " + OpenSsl.availableOpenSslCipherSuites());
  } else {
    log.info("OpenSSL not available (this is not an error, we simply fallback to built-in JDK SSL) because of "
        + OpenSsl.unavailabilityCause());
  }
}

代码示例来源:origin: floragunncom/search-guard-ssl

log.debug("OPENSSL "+OpenSsl.versionString()+" supports the following ciphers (openssl-style) {}", OpenSsl.availableOpenSslCipherSuites());

相关文章