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

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

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

SslContext.newClientContextInternal介绍

暂无

代码示例

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

/**
   * Create new {@code SslContext} instance with configured settings.
   * <p>If {@link #sslProvider(SslProvider)} is set to {@link SslProvider#OPENSSL_REFCNT} then the caller is
   * responsible for releasing this object, or else native memory may leak.
   */
  public SslContext build() throws SSLException {
    if (forServer) {
      return SslContext.newServerContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, startTls,
        enableOcsp);
    } else {
      return SslContext.newClientContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, protocols, sessionCacheSize, sessionTimeout, enableOcsp);
    }
  }
}

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

/**
   * Create new {@code SslContext} instance with configured settings.
   * <p>If {@link #sslProvider(SslProvider)} is set to {@link SslProvider#OPENSSL_REFCNT} then the caller is
   * responsible for releasing this object, or else native memory may leak.
   */
  public SslContext build() throws SSLException {
    if (forServer) {
      return SslContext.newServerContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, startTls,
        enableOcsp);
    } else {
      return SslContext.newClientContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, protocols, sessionCacheSize, sessionTimeout, enableOcsp);
    }
  }
}

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

long sessionCacheSize, long sessionTimeout) throws SSLException {
try {
  return newClientContextInternal(provider, null,
                  toX509Certificates(trustCertCollectionFile), trustManagerFactory,
                  toX509Certificates(keyCertChainFile), toPrivateKey(keyFile, keyPassword),

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

long sessionCacheSize, long sessionTimeout) throws SSLException {
try {
  return newClientContextInternal(provider, null,
                  toX509Certificates(trustCertCollectionFile), trustManagerFactory,
                  toX509Certificates(keyCertChainFile), toPrivateKey(keyFile, keyPassword),

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

/**
   * Create new {@code SslContext} instance with configured settings.
   * <p>If {@link #sslProvider(SslProvider)} is set to {@link SslProvider#OPENSSL_REFCNT} then the caller is
   * responsible for releasing this object, or else native memory may leak.
   */
  public SslContext build() throws SSLException {
    if (forServer) {
      return SslContext.newServerContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, startTls,
        enableOcsp);
    } else {
      return SslContext.newClientContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, protocols, sessionCacheSize, sessionTimeout, enableOcsp);
    }
  }
}

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

long sessionCacheSize, long sessionTimeout) throws SSLException {
try {
  return newClientContextInternal(provider, null,
                  toX509Certificates(trustCertCollectionFile), trustManagerFactory,
                  toX509Certificates(keyCertChainFile), toPrivateKey(keyFile, keyPassword),

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

/**
   * Create new {@code SslContext} instance with configured settings.
   * <p>If {@link #sslProvider(SslProvider)} is set to {@link SslProvider#OPENSSL_REFCNT} then the caller is
   * responsible for releasing this object, or else native memory may leak.
   */
  public SslContext build() throws SSLException {
    if (forServer) {
      return SslContext.newServerContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, startTls,
        enableOcsp);
    } else {
      return SslContext.newClientContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, protocols, sessionCacheSize, sessionTimeout, enableOcsp);
    }
  }
}

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

/**
   * Create new {@code SslContext} instance with configured settings.
   * <p>If {@link #sslProvider(SslProvider)} is set to {@link SslProvider#OPENSSL_REFCNT} then the caller is
   * responsible for releasing this object, or else native memory may leak.
   */
  public SslContext build() throws SSLException {
    if (forServer) {
      return SslContext.newServerContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, startTls,
        enableOcsp);
    } else {
      return SslContext.newClientContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, protocols, sessionCacheSize, sessionTimeout, enableOcsp);
    }
  }
}

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

/**
   * Create new {@code SslContext} instance with configured settings.
   * <p>If {@link #sslProvider(SslProvider)} is set to {@link SslProvider#OPENSSL_REFCNT} then the caller is
   * responsible for releasing this object, or else native memory may leak.
   */
  public SslContext build() throws SSLException {
    if (forServer) {
      return SslContext.newServerContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, startTls,
        enableOcsp);
    } else {
      return SslContext.newClientContextInternal(provider, sslContextProvider, trustCertCollection,
        trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory,
        ciphers, cipherFilter, apn, protocols, sessionCacheSize, sessionTimeout, enableOcsp);
    }
  }
}

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

long sessionCacheSize, long sessionTimeout) throws SSLException {
try {
  return newClientContextInternal(provider, null,
                  toX509Certificates(trustCertCollectionFile), trustManagerFactory,
                  toX509Certificates(keyCertChainFile), toPrivateKey(keyFile, keyPassword),

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

long sessionCacheSize, long sessionTimeout) throws SSLException {
try {
  return newClientContextInternal(provider, null,
                  toX509Certificates(trustCertCollectionFile), trustManagerFactory,
                  toX509Certificates(keyCertChainFile), toPrivateKey(keyFile, keyPassword),

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

long sessionCacheSize, long sessionTimeout) throws SSLException {
try {
  return newClientContextInternal(provider, null,
                  toX509Certificates(trustCertCollectionFile), trustManagerFactory,
                  toX509Certificates(keyCertChainFile), toPrivateKey(keyFile, keyPassword),

相关文章