public final class OpenSslServerContext extends OpenSslContext
SslContext 。
这个类将使用终结器来确保自动清理本地资源。 要避免终结器并手动释放本机内存,请参阅ReferenceCountedOpenSslServerContext 。
ctx, VERIFY_DEPTH| Constructor and Description |
|---|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword, java.lang.Iterable<java.lang.String> ciphers, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword, java.lang.Iterable<java.lang.String> ciphers, java.lang.Iterable<java.lang.String> nextProtocols, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, ApplicationProtocolConfig config, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig config, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(java.io.File certChainFile, java.io.File keyFile, java.lang.String keyPassword, javax.net.ssl.TrustManagerFactory trustManagerFactory, java.lang.Iterable<java.lang.String> ciphers, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(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 config, long sessionCacheSize, long sessionTimeout)
已过时。
|
OpenSslServerContext(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, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout)
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
OpenSslServerSessionContext |
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 OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
java.lang.Iterable<java.lang.String> ciphers,
ApplicationProtocolConfig apn,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
apn - 提供配置与应用程序协议协商相关的参数的方法。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 高速缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
java.lang.Iterable<java.lang.String> ciphers,
java.lang.Iterable<java.lang.String> nextProtocols,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
nextProtocols - 按照优先顺序接受的应用层协议。
null禁用TLS NPN / ALPN扩展。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
javax.net.ssl.TrustManagerFactory trustManagerFactory,
java.lang.Iterable<java.lang.String> ciphers,
ApplicationProtocolConfig config,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
config - 应用程序协议配置。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
javax.net.ssl.TrustManagerFactory trustManagerFactory,
java.lang.Iterable<java.lang.String> ciphers,
OpenSslApplicationProtocolNegotiator apn,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
apn - 应用协议谈判者。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
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证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
cipherFilter - 适用于所提供的密码列表的过滤器
apn - 提供配置与应用程序协议协商相关的参数的方法。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(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 config,
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证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
keyManagerFactory - KeyManagerFactory提供用于加密发送到客户端的数据的KeyManager 。
null使用默认值或解析结果keyCertChainFile和keyFile 。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
cipherFilter - 适用于所提供的密码列表的过滤器仅在
provider是
SslProvider.JDK时才需要
config - 提供了配置与应用协议协商相关的参数的方法。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
javax.net.ssl.TrustManagerFactory trustManagerFactory,
java.lang.Iterable<java.lang.String> ciphers,
CipherSuiteFilter cipherFilter,
ApplicationProtocolConfig config,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
cipherFilter - 适用于所提供的密码列表的过滤器
config - 应用程序协议配置。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 高速缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(java.io.File certChainFile,
java.io.File keyFile,
java.lang.String keyPassword,
javax.net.ssl.TrustManagerFactory trustManagerFactory,
java.lang.Iterable<java.lang.String> ciphers,
CipherSuiteFilter cipherFilter,
OpenSslApplicationProtocolNegotiator apn,
long sessionCacheSize,
long sessionTimeout)
throws javax.net.ssl.SSLException
SslContextBuilder }
certChainFile - PEM格式的X.509证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
ciphers - 要使用的密码套件,按优先顺序排列。
null使用默认密码套件。
cipherFilter - 适用于所提供的密码列表的过滤器
apn - 应用程序协议谈判者。
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 缓存的SSL会话对象的超时,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
@Deprecated
public OpenSslServerContext(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,
OpenSslApplicationProtocolNegotiator 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证书链文件
keyFile - PEM格式的PKCS#8私钥文件
keyPassword -的的密码keyFile 。
null如果它没有密码保护。
keyManagerFactory -所述KeyManagerFactory ,其提供KeyManager s表示用来加密数据被发送到客户端。
null使用默认值或解析结果keyCertChainFile和keyFile 。
ciphers - 按优先顺序启用的密码套件。
null使用默认密码套件。
cipherFilter - 适用于所提供的密码列表的过滤器仅当
provider是
SslProvider.JDK时才需要
apn - 应用协议谈判器对象
sessionCacheSize - 用于存储SSL会话对象的高速缓存大小。
0使用默认值。
sessionTimeout - 高速缓存的SSL会话对象的超时值,以秒为单位。
0使用默认值。
javax.net.ssl.SSLException
public OpenSslServerSessionContext sessionContext()
SslContext
SSLSessionContext对象。
sessionContext在课堂上
ReferenceCountedOpenSslContext
Copyright © 2008–2018 The Netty Project. All rights reserved.