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

x33g5p2x  于2022-01-29 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(162)

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

SslContext.defaultClientProvider介绍

[英]Returns the default client-side implementation provider currently in use.
[中]返回当前使用的默认客户端实现提供程序。

代码示例

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

long sessionCacheSize, long sessionTimeout, boolean enableOcsp) throws SSLException {
if (provider == null) {
  provider = defaultClientProvider();

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

long sessionCacheSize, long sessionTimeout, boolean enableOcsp) throws SSLException {
if (provider == null) {
  provider = defaultClientProvider();

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

long sessionCacheSize, long sessionTimeout, boolean enableOcsp) throws SSLException {
if (provider == null) {
  provider = defaultClientProvider();

代码示例来源:origin: com.microsoft.azure/azure-cosmosdb-commons

private DefaultSSLEngineFactory() {
  try {
    SslProvider sslProvider = SslContext.defaultClientProvider();
    sslContext = SslContextBuilder.forClient().sslProvider(sslProvider).build();
  } catch (SSLException e) {
    throw new IllegalStateException("Failed to create default SSL context", e);
  }
}

代码示例来源:origin: aws/aws-sdk-java-v2

private SslContext sslContext(String protocol) {
  if (!protocol.equalsIgnoreCase("https")) {
    return null;
  }
  try {
    return SslContextBuilder.forClient()
                .sslProvider(SslContext.defaultClientProvider())
                .ciphers(Http2SecurityUtil.CIPHERS, SupportedCipherSuiteFilter.INSTANCE)
                .trustManager(getTrustManager())
                .build();
  } catch (SSLException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: software.amazon.awssdk/netty-nio-client

private SslContext sslContext(String protocol) {
  if (!protocol.equalsIgnoreCase("https")) {
    return null;
  }
  try {
    return SslContextBuilder.forClient()
                .sslProvider(SslContext.defaultClientProvider())
                .ciphers(Http2SecurityUtil.CIPHERS, SupportedCipherSuiteFilter.INSTANCE)
                .trustManager(getTrustManager())
                .build();
  } catch (SSLException e) {
    throw new RuntimeException(e);
  }
}

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

long sessionCacheSize, long sessionTimeout, boolean enableOcsp) throws SSLException {
if (provider == null) {
  provider = defaultClientProvider();

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

long sessionCacheSize, long sessionTimeout, boolean enableOcsp) throws SSLException {
if (provider == null) {
  provider = defaultClientProvider();

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

long sessionCacheSize, long sessionTimeout, boolean enableOcsp) throws SSLException {
if (provider == null) {
  provider = defaultClientProvider();

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

sslTransportClientProvider = SslContext.defaultClientProvider();
sslTransportServerProvider = SslContext.defaultServerProvider();
if (!openSSLInfoLogged) {

相关文章