本文整理了Java中io.netty.handler.ssl.SslContext.defaultClientProvider()
方法的一些代码示例,展示了SslContext.defaultClientProvider()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SslContext.defaultClientProvider()
方法的具体详情如下:
包路径:io.netty.handler.ssl.SslContext
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!