public final class OpenSslClientContext extends OpenSslContext
SslContext使用OpenSSL的SSL / TLS实现。
这个类将使用终结器来确保自动清理本地资源。 要避免终结器并手动释放本机内存,请参阅ReferenceCountedOpenSslClientContext 。
ctx, VERIFY_DEPTH| Constructor and Description |
|---|
OpenSslClientContext()
已过时。
|
OpenSslClientContext(java.io.File certChainFile)
已过时。
|
OpenSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory)
已过时。
|
OpenSslClientContext(java.io.File trustCertCollectionFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.io.File keyCertChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.KeyManagerFactory keyManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslClientContext(java.io.File certChainFile, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslClientContext(javax.net.ssl.TrustManagerFactory trustManagerFactory)
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
OpenSslSessionContext |
sessionContext()
返回此上下文拥有的
SSLSessionContext对象。
|
finalizeapplicationProtocolNegotiator, certificates, chooseTrustManager, chooseX509KeyManager, cipherSuites, context, getBioNonApplicationBufferSize, getRejectRemoteInitiatedRenegotiation, isClient, newEngine, newEngine, newHandler, newHandler, refCnt, release, release, retain, retain, sessionCacheSize, sessionTimeout, setBioNonApplicationBufferSize, setRejectRemoteInitiatedRenegotiation, setTicketKeys, sslCtxPointer, stats, touch, touchbuildTrustManagerFactory, defaultClientProvider, defaultServerProvider, generateKeySpec, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocols@Deprecated
public OpenSslClientContext()
throws javax.net.ssl.SSLException
SslContextBuilder
javax.net.ssl.SSLException
@Deprecated
public OpenSslClientContext(java.io.File certChainFile)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件。
null使用系统默认值
javax.net.ssl.SSLException
@Deprecated
public OpenSslClientContext(javax.net.ssl.TrustManagerFactory trustManagerFactory)
throws javax.net.ssl.SSLException
SslContextBuilder
trustManagerFactory - TrustManagerFactory提供验证从服务器发送的证书的TrustManager 。
null使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslClientContext(java.io.File certChainFile,
javax.net.ssl.TrustManagerFactory trustManagerFactory)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件。
null使用系统默认值
trustManagerFactory -所述TrustManagerFactory ,其提供TrustManager s表示验证从服务器发送来的证书。
null使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslClientContext(java.io.File certChainFile,
javax.net.ssl.TrustManagerFactory trustManagerFactory,
java.lang.Iterable<java.lang.String> ciphers,
ApplicationProtocolConfig apn,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
trustManagerFactory -所述TrustManagerFactory ,其提供TrustManager s表示验证从服务器发送来的证书。
null使用默认..
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
apn - 提供了一种用于配置与应用程序协议协商相关的参数的方法。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslClientContext(java.io.File certChainFile,
javax.net.ssl.TrustManagerFactory trustManagerFactory,
java.lang.Iterable<java.lang.String> ciphers,
CipherSuiteFilter cipherFilter,
ApplicationProtocolConfig apn,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
trustManagerFactory -所述TrustManagerFactory ,其提供TrustManager s表示验证从服务器发送来的证书。
null使用默认..
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
cipherFilter - 适用于所提供的密码列表的过滤器
apn - 提供配置与应用程序协议协商相关的参数的方法。
sessionCacheSize - 用于存储SSL会话对象的缓存大小。
0使用默认值。
sessionTimeout - 高速缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslClientContext(java.io.File trustCertCollectionFile,
javax.net.ssl.TrustManagerFactory trustManagerFactory,
java.io.File keyCertChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
javax.net.ssl.KeyManagerFactory keyManagerFactory,
java.lang.Iterable<java.lang.String> ciphers,
CipherSuiteFilter cipherFilter,
ApplicationProtocolConfig apn,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
trustCertCollectionFile - PEM格式的X.509证书收集文件。
null使用系统默认值
trustManagerFactory -所述TrustManagerFactory ,其提供TrustManager s表示验证从服务器发送来的证书。
null使用默认值或解析结果trustCertCollectionFile
keyCertChainFile - PEM格式的X.509证书链文件。
这为相互认证提供了公钥。
null使用系统默认值
keyFile - PEM格式的PKCS#8私钥文件。
这提供了相互认证的私钥。
null没有相互认证。
keyPassword -的的密码keyFile 。
null如果没有密码保护。
如果keyFile是null忽略。
keyManagerFactory - KeyManagerFactory提供用于加密发送到服务器的数据的KeyManager 。
null使用默认值或解析结果keyCertChainFile和keyFile 。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
cipherFilter - 适用于所提供的密码列表的过滤器
apn - 应用协议谈判器对象。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
public OpenSslSessionContext sessionContext()
SslContext
SSLSessionContext对象。
sessionContext在课堂上
ReferenceCountedOpenSslContext
Copyright © 2008–2018 The Netty Project. All rights reserved.