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

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

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

SslContext.toApplicationProtocolConfig介绍

暂无

代码示例

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

/**
 * Creates a new server-side {@link SslContext}.
 *
 * @param provider the {@link SslContext} implementation to use.
 *                 {@code null} to use the current default one.
 * @param certChainFile an X.509 certificate chain file in PEM format
 * @param keyFile a PKCS#8 private key file in PEM format
 * @param keyPassword the password of the {@code keyFile}.
 *                    {@code null} if it's not password-protected.
 * @param ciphers the cipher suites to enable, in the order of preference.
 *                {@code null} to use the default cipher suites.
 * @param nextProtocols the application layer protocols to accept, in the order of preference.
 *                      {@code null} to disable TLS NPN/ALPN extension.
 * @param sessionCacheSize the size of the cache used for storing SSL session objects.
 *                         {@code 0} to use the default value.
 * @param sessionTimeout the timeout for the cached SSL session objects, in seconds.
 *                       {@code 0} to use the default value.
 * @return a new server-side {@link SslContext}
 * @deprecated Replaced by {@link SslContextBuilder}
 */
@Deprecated
public static SslContext newServerContext(
    SslProvider provider,
    File certChainFile, File keyFile, String keyPassword,
    Iterable<String> ciphers, Iterable<String> nextProtocols,
    long sessionCacheSize, long sessionTimeout) throws SSLException {
  return newServerContext(provider, certChainFile, keyFile, keyPassword,
              ciphers, IdentityCipherSuiteFilter.INSTANCE,
              toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);
}

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

provider, certChainFile, trustManagerFactory, null, null, null, null,
ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

provider, null, trustManagerFactory, certChainFile, keyFile, keyPassword,
null, ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

/**
 * Creates a new server-side {@link SslContext}.
 *
 * @param provider the {@link SslContext} implementation to use.
 *                 {@code null} to use the current default one.
 * @param certChainFile an X.509 certificate chain file in PEM format
 * @param keyFile a PKCS#8 private key file in PEM format
 * @param keyPassword the password of the {@code keyFile}.
 *                    {@code null} if it's not password-protected.
 * @param ciphers the cipher suites to enable, in the order of preference.
 *                {@code null} to use the default cipher suites.
 * @param nextProtocols the application layer protocols to accept, in the order of preference.
 *                      {@code null} to disable TLS NPN/ALPN extension.
 * @param sessionCacheSize the size of the cache used for storing SSL session objects.
 *                         {@code 0} to use the default value.
 * @param sessionTimeout the timeout for the cached SSL session objects, in seconds.
 *                       {@code 0} to use the default value.
 * @return a new server-side {@link SslContext}
 * @deprecated Replaced by {@link SslContextBuilder}
 */
@Deprecated
public static SslContext newServerContext(
    SslProvider provider,
    File certChainFile, File keyFile, String keyPassword,
    Iterable<String> ciphers, Iterable<String> nextProtocols,
    long sessionCacheSize, long sessionTimeout) throws SSLException {
  return newServerContext(provider, certChainFile, keyFile, keyPassword,
              ciphers, IdentityCipherSuiteFilter.INSTANCE,
              toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);
}

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

provider, null, trustManagerFactory, certChainFile, keyFile, keyPassword,
null, ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

provider, certChainFile, trustManagerFactory, null, null, null, null,
ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

/**
 * Creates a new server-side {@link SslContext}.
 *
 * @param provider the {@link SslContext} implementation to use.
 *                 {@code null} to use the current default one.
 * @param certChainFile an X.509 certificate chain file in PEM format
 * @param keyFile a PKCS#8 private key file in PEM format
 * @param keyPassword the password of the {@code keyFile}.
 *                    {@code null} if it's not password-protected.
 * @param ciphers the cipher suites to enable, in the order of preference.
 *                {@code null} to use the default cipher suites.
 * @param nextProtocols the application layer protocols to accept, in the order of preference.
 *                      {@code null} to disable TLS NPN/ALPN extension.
 * @param sessionCacheSize the size of the cache used for storing SSL session objects.
 *                         {@code 0} to use the default value.
 * @param sessionTimeout the timeout for the cached SSL session objects, in seconds.
 *                       {@code 0} to use the default value.
 * @return a new server-side {@link SslContext}
 * @deprecated Replaced by {@link SslContextBuilder}
 */
@Deprecated
public static SslContext newServerContext(
    SslProvider provider,
    File certChainFile, File keyFile, String keyPassword,
    Iterable<String> ciphers, Iterable<String> nextProtocols,
    long sessionCacheSize, long sessionTimeout) throws SSLException {
  return newServerContext(provider, certChainFile, keyFile, keyPassword,
              ciphers, IdentityCipherSuiteFilter.INSTANCE,
              toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);
}

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

provider, certChainFile, trustManagerFactory, null, null, null, null,
ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

provider, null, trustManagerFactory, certChainFile, keyFile, keyPassword,
null, ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

/**
 * Creates a new server-side {@link SslContext}.
 *
 * @param provider the {@link SslContext} implementation to use.
 *                 {@code null} to use the current default one.
 * @param certChainFile an X.509 certificate chain file in PEM format
 * @param keyFile a PKCS#8 private key file in PEM format
 * @param keyPassword the password of the {@code keyFile}.
 *                    {@code null} if it's not password-protected.
 * @param ciphers the cipher suites to enable, in the order of preference.
 *                {@code null} to use the default cipher suites.
 * @param nextProtocols the application layer protocols to accept, in the order of preference.
 *                      {@code null} to disable TLS NPN/ALPN extension.
 * @param sessionCacheSize the size of the cache used for storing SSL session objects.
 *                         {@code 0} to use the default value.
 * @param sessionTimeout the timeout for the cached SSL session objects, in seconds.
 *                       {@code 0} to use the default value.
 * @return a new server-side {@link SslContext}
 * @deprecated Replaced by {@link SslContextBuilder}
 */
@Deprecated
public static SslContext newServerContext(
    SslProvider provider,
    File certChainFile, File keyFile, String keyPassword,
    Iterable<String> ciphers, Iterable<String> nextProtocols,
    long sessionCacheSize, long sessionTimeout) throws SSLException {
  return newServerContext(provider, certChainFile, keyFile, keyPassword,
              ciphers, IdentityCipherSuiteFilter.INSTANCE,
              toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);
}

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

provider, null, trustManagerFactory, certChainFile, keyFile, keyPassword,
null, ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

provider, certChainFile, trustManagerFactory, null, null, null, null,
ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

/**
 * Creates a new server-side {@link SslContext}.
 *
 * @param provider the {@link SslContext} implementation to use.
 *                 {@code null} to use the current default one.
 * @param certChainFile an X.509 certificate chain file in PEM format
 * @param keyFile a PKCS#8 private key file in PEM format
 * @param keyPassword the password of the {@code keyFile}.
 *                    {@code null} if it's not password-protected.
 * @param ciphers the cipher suites to enable, in the order of preference.
 *                {@code null} to use the default cipher suites.
 * @param nextProtocols the application layer protocols to accept, in the order of preference.
 *                      {@code null} to disable TLS NPN/ALPN extension.
 * @param sessionCacheSize the size of the cache used for storing SSL session objects.
 *                         {@code 0} to use the default value.
 * @param sessionTimeout the timeout for the cached SSL session objects, in seconds.
 *                       {@code 0} to use the default value.
 * @return a new server-side {@link SslContext}
 * @deprecated Replaced by {@link SslContextBuilder}
 */
@Deprecated
public static SslContext newServerContext(
    SslProvider provider,
    File certChainFile, File keyFile, String keyPassword,
    Iterable<String> ciphers, Iterable<String> nextProtocols,
    long sessionCacheSize, long sessionTimeout) throws SSLException {
  return newServerContext(provider, certChainFile, keyFile, keyPassword,
              ciphers, IdentityCipherSuiteFilter.INSTANCE,
              toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);
}

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

provider, certChainFile, trustManagerFactory, null, null, null, null,
ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

/**
 * Creates a new server-side {@link SslContext}.
 *
 * @param provider the {@link SslContext} implementation to use.
 *                 {@code null} to use the current default one.
 * @param certChainFile an X.509 certificate chain file in PEM format
 * @param keyFile a PKCS#8 private key file in PEM format
 * @param keyPassword the password of the {@code keyFile}.
 *                    {@code null} if it's not password-protected.
 * @param ciphers the cipher suites to enable, in the order of preference.
 *                {@code null} to use the default cipher suites.
 * @param nextProtocols the application layer protocols to accept, in the order of preference.
 *                      {@code null} to disable TLS NPN/ALPN extension.
 * @param sessionCacheSize the size of the cache used for storing SSL session objects.
 *                         {@code 0} to use the default value.
 * @param sessionTimeout the timeout for the cached SSL session objects, in seconds.
 *                       {@code 0} to use the default value.
 * @return a new server-side {@link SslContext}
 * @deprecated Replaced by {@link SslContextBuilder}
 */
@Deprecated
public static SslContext newServerContext(
    SslProvider provider,
    File certChainFile, File keyFile, String keyPassword,
    Iterable<String> ciphers, Iterable<String> nextProtocols,
    long sessionCacheSize, long sessionTimeout) throws SSLException {
  return newServerContext(provider, certChainFile, keyFile, keyPassword,
              ciphers, IdentityCipherSuiteFilter.INSTANCE,
              toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);
}

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

provider, certChainFile, trustManagerFactory, null, null, null, null,
ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

provider, null, trustManagerFactory, certChainFile, keyFile, keyPassword,
null, ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

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

provider, null, trustManagerFactory, certChainFile, keyFile, keyPassword,
null, ciphers, IdentityCipherSuiteFilter.INSTANCE,
toApplicationProtocolConfig(nextProtocols), sessionCacheSize, sessionTimeout);

相关文章