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

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

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

SslContext.buildTrustManagerFactory介绍

[英]Build a TrustManagerFactory from a certificate chain file.
[中]从证书链文件构建TrustManagerFactory。

代码示例

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

/**
 * Build a {@link TrustManagerFactory} from a certificate chain file.
 * @param certChainFile The certificate file to build from.
 * @param trustManagerFactory The existing {@link TrustManagerFactory} that will be used if not {@code null}.
 * @return A {@link TrustManagerFactory} which contains the certificates in {@code certChainFile}
 */
@Deprecated
protected static TrustManagerFactory buildTrustManagerFactory(
    File certChainFile, TrustManagerFactory trustManagerFactory)
    throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException {
  X509Certificate[] x509Certs = toX509Certificates(certChainFile);
  return buildTrustManagerFactory(x509Certs, trustManagerFactory);
}

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

/**
 * Build a {@link TrustManagerFactory} from a certificate chain file.
 * @param certChainFile The certificate file to build from.
 * @param trustManagerFactory The existing {@link TrustManagerFactory} that will be used if not {@code null}.
 * @return A {@link TrustManagerFactory} which contains the certificates in {@code certChainFile}
 */
@Deprecated
protected static TrustManagerFactory buildTrustManagerFactory(
    File certChainFile, TrustManagerFactory trustManagerFactory)
    throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException {
  X509Certificate[] x509Certs = toX509Certificates(certChainFile);
  return buildTrustManagerFactory(x509Certs, trustManagerFactory);
}

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

/**
 * Build a {@link TrustManagerFactory} from a certificate chain file.
 * @param certChainFile The certificate file to build from.
 * @param trustManagerFactory The existing {@link TrustManagerFactory} that will be used if not {@code null}.
 * @return A {@link TrustManagerFactory} which contains the certificates in {@code certChainFile}
 */
@Deprecated
protected static TrustManagerFactory buildTrustManagerFactory(
    File certChainFile, TrustManagerFactory trustManagerFactory)
    throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException {
  X509Certificate[] x509Certs = toX509Certificates(certChainFile);
  return buildTrustManagerFactory(x509Certs, trustManagerFactory);
}

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

/**
 * Build a {@link TrustManagerFactory} from a certificate chain file.
 * @param certChainFile The certificate file to build from.
 * @param trustManagerFactory The existing {@link TrustManagerFactory} that will be used if not {@code null}.
 * @return A {@link TrustManagerFactory} which contains the certificates in {@code certChainFile}
 */
@Deprecated
protected static TrustManagerFactory buildTrustManagerFactory(
    File certChainFile, TrustManagerFactory trustManagerFactory)
    throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException {
  X509Certificate[] x509Certs = toX509Certificates(certChainFile);
  return buildTrustManagerFactory(x509Certs, trustManagerFactory);
}

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

/**
 * Build a {@link TrustManagerFactory} from a certificate chain file.
 * @param certChainFile The certificate file to build from.
 * @param trustManagerFactory The existing {@link TrustManagerFactory} that will be used if not {@code null}.
 * @return A {@link TrustManagerFactory} which contains the certificates in {@code certChainFile}
 */
@Deprecated
protected static TrustManagerFactory buildTrustManagerFactory(
    File certChainFile, TrustManagerFactory trustManagerFactory)
    throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException {
  X509Certificate[] x509Certs = toX509Certificates(certChainFile);
  return buildTrustManagerFactory(x509Certs, trustManagerFactory);
}

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

/**
 * Build a {@link TrustManagerFactory} from a certificate chain file.
 * @param certChainFile The certificate file to build from.
 * @param trustManagerFactory The existing {@link TrustManagerFactory} that will be used if not {@code null}.
 * @return A {@link TrustManagerFactory} which contains the certificates in {@code certChainFile}
 */
@Deprecated
protected static TrustManagerFactory buildTrustManagerFactory(
    File certChainFile, TrustManagerFactory trustManagerFactory)
    throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException {
  X509Certificate[] x509Certs = toX509Certificates(certChainFile);
  return buildTrustManagerFactory(x509Certs, trustManagerFactory);
}

相关文章