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

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

本文整理了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

  1. /**
  2. * @deprecated use {@link #availableOpenSslCipherSuites()}
  3. */
  4. @Deprecated
  5. public static Set<String> availableCipherSuites() {
  6. return availableOpenSslCipherSuites();
  7. }

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

  1. /**
  2. * @deprecated use {@link #availableOpenSslCipherSuites()}
  3. */
  4. @Deprecated
  5. public static Set<String> availableCipherSuites() {
  6. return availableOpenSslCipherSuites();
  7. }

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

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

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

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

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

  1. /**
  2. * @deprecated use {@link #availableOpenSslCipherSuites()}
  3. */
  4. @Deprecated
  5. public static Set<String> availableCipherSuites() {
  6. return availableOpenSslCipherSuites();
  7. }

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

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

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

  1. /**
  2. * @deprecated use {@link #availableOpenSslCipherSuites()}
  3. */
  4. @Deprecated
  5. public static Set<String> availableCipherSuites() {
  6. return availableOpenSslCipherSuites();
  7. }

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

  1. /**
  2. * @deprecated use {@link #availableOpenSslCipherSuites()}
  3. */
  4. @Deprecated
  5. public static Set<String> availableCipherSuites() {
  6. return availableOpenSslCipherSuites();
  7. }

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

  1. /**
  2. * @deprecated use {@link #availableOpenSslCipherSuites()}
  3. */
  4. @Deprecated
  5. public static Set<String> availableCipherSuites() {
  6. return availableOpenSslCipherSuites();
  7. }

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

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

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

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

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

  1. private void logOpenSSLInfos() {
  2. if (OpenSsl.isAvailable()) {
  3. log.info("OpenSSL " + OpenSsl.versionString() + " (" + OpenSsl.version() + ") available");
  4. if (OpenSsl.version() < 0x10002000L) {
  5. log.warn(
  6. "Outdated OpenSSL version detected. You should update to 1.0.2k or later. Currently installed: "
  7. + OpenSsl.versionString());
  8. }
  9. if (!OpenSsl.supportsHostnameValidation()) {
  10. log.warn("Your OpenSSL version " + OpenSsl.versionString()
  11. + " does not support hostname verification. You should update to 1.0.2k or later.");
  12. }
  13. log.debug("OpenSSL available ciphers " + OpenSsl.availableOpenSslCipherSuites());
  14. } else {
  15. log.info("OpenSSL not available (this is not an error, we simply fallback to built-in JDK SSL) because of "
  16. + OpenSsl.unavailabilityCause());
  17. }
  18. }

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

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

相关文章