本文整理了Java中javax.net.ssl.SSLContext.getProvider()
方法的一些代码示例,展示了SSLContext.getProvider()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SSLContext.getProvider()
方法的具体详情如下:
包路径:javax.net.ssl.SSLContext
类名称:SSLContext
方法名:getProvider
[英]Returns the provider of this SSLContext instance.
[中]返回此SSLContext实例的提供程序。
代码示例来源:origin: apache/ignite
/**
* @param delegate Wrapped SSL context.
* @param sslParameters Extended SSL parameters.
*/
public SSLContextWrapper(SSLContext delegate, SSLParameters sslParameters) {
super(new DelegatingSSLContextSpi(delegate, sslParameters),
delegate.getProvider(),
delegate.getProtocol());
}
}
代码示例来源:origin: wildfly/wildfly
/**
* Construct a new instance.
*
* @param contextSpi the SSL context SPI to delegate to
*/
DelegatingSSLContext(final AbstractDelegatingSSLContextSpi contextSpi) {
super(contextSpi, contextSpi.getDelegate().getProvider(), contextSpi.getDelegate().getProtocol());
}
}
代码示例来源:origin: wildfly/wildfly
public SNISSLContext(SNIContextMatcher matcher) {
super(new SNISSLContextSpi(matcher), matcher.getDefaultContext().getProvider(), matcher.getDefaultContext().getProtocol());
}
}
代码示例来源:origin: wildfly/wildfly
public SNISSLContext(SNIContextMatcher matcher) {
super(new SNISSLContextSpi(matcher), matcher.getDefaultContext().getProvider(), matcher.getDefaultContext().getProtocol());
}
}
代码示例来源:origin: redisson/redisson
if (DEFAULT_PROVIDER.equals(sslContext.getProvider())) {
this.protocols = protocols == null? DEFAULT_PROTOCOLS : protocols;
if (isTlsV13Supported(this.protocols)) {
代码示例来源:origin: Red5/red5-server
log.debug("SSL provider is: {}", sslContext.getProvider());
代码示例来源:origin: io.netty/netty-handler
if (DEFAULT_PROVIDER.equals(sslContext.getProvider())) {
this.protocols = protocols == null? DEFAULT_PROTOCOLS : protocols;
if (isTlsV13Supported(this.protocols)) {
代码示例来源:origin: camunda/camunda-bpm-platform
+ "' provider '" + sslContext.getProvider() + "'");
代码示例来源:origin: org.conscrypt/conscrypt-openjdk
/**
* Indicates whether the given {@link SSLContext} was created by this distribution of Conscrypt.
*/
public static boolean isConscrypt(SSLContext context) {
return context.getProvider() instanceof OpenSSLProvider;
}
代码示例来源:origin: org.conscrypt/conscrypt-openjdk-uber
/**
* Indicates whether the given {@link SSLContext} was created by this distribution of Conscrypt.
*/
public static boolean isConscrypt(SSLContext context) {
return context.getProvider() instanceof OpenSSLProvider;
}
代码示例来源:origin: eclipse/paho.mqtt.java
ctx.getProvider().getName()});
代码示例来源:origin: stackoverflow.com
try
{
SSLContext se = SSLContext.getInstance("TLS");
Security.addProvider(se.getProvider());
}
catch(NoSuchAlgorithmException e) { }
代码示例来源:origin: com.microsoft.azure/azure-data-lake-store-sdk
public SSLSocketFactoryEx(SSLChannelMode channelMode) throws IOException {
this.channelMode = channelMode;
try {
initSSLSocketFactoryEx(null, null, null);
} catch (NoSuchAlgorithmException e) {
throw new IOException(e);
} catch (KeyManagementException e) {
throw new IOException(e);
}
userAgent = m_ctx.getProvider().getName() + "-" + m_ctx.getProvider().getVersion();
}
代码示例来源:origin: org.apache.ignite/ignite-core
/** */
SSLContextWrapper(SSLContext delegate, SSLParameters sslParameters) {
super(new DelegatingSSLContextSpi(delegate, sslParameters),
delegate.getProvider(),
delegate.getProtocol());
}
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
/**
* Construct a new instance.
*
* @param contextSpi the SSL context SPI to delegate to
*/
DelegatingSSLContext(final AbstractDelegatingSSLContextSpi contextSpi) {
super(contextSpi, contextSpi.getDelegate().getProvider(), contextSpi.getDelegate().getProtocol());
}
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-ssl
/**
* Construct a new instance.
*
* @param contextSpi the SSL context SPI to delegate to
*/
DelegatingSSLContext(final AbstractDelegatingSSLContextSpi contextSpi) {
super(contextSpi, contextSpi.getDelegate().getProvider(), contextSpi.getDelegate().getProtocol());
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Construct a new instance.
*
* @param contextSpi the SSL context SPI to delegate to
*/
DelegatingSSLContext(final AbstractDelegatingSSLContextSpi contextSpi) {
super(contextSpi, contextSpi.getDelegate().getProvider(), contextSpi.getDelegate().getProtocol());
}
}
代码示例来源:origin: io.undertow/undertow-core
public SNISSLContext(SNIContextMatcher matcher) {
super(new SNISSLContextSpi(matcher), matcher.getDefaultContext().getProvider(), matcher.getDefaultContext().getProtocol());
}
}
代码示例来源:origin: apache/httpcomponents-core
@Test
public void testBuildWithProvider() throws Exception {
final URL resource1 = getResource("/test-server.keystore");
final String storePassword = "nopassword";
final String keyPassword = "nopassword";
final SSLContext sslContext=SSLContextBuilder.create()
.setProvider(Security.getProvider(PROVIDER_SUN_JSSE))
.loadKeyMaterial(resource1, storePassword.toCharArray(), keyPassword.toCharArray())
.build();
Assert.assertEquals(PROVIDER_SUN_JSSE, sslContext.getProvider().getName());
}
代码示例来源:origin: apache/httpcomponents-core
@Test
public void testBuildWithProviderName() throws Exception {
final URL resource1 = getResource("/test-server.keystore");
final String storePassword = "nopassword";
final String keyPassword = "nopassword";
final SSLContext sslContext=SSLContextBuilder.create()
.setProvider(PROVIDER_SUN_JSSE)
.loadKeyMaterial(resource1, storePassword.toCharArray(), keyPassword.toCharArray())
.build();
Assert.assertEquals(PROVIDER_SUN_JSSE, sslContext.getProvider().getName());
}
内容来源于网络,如有侵权,请联系作者删除!