public final class OpenSslServerContext extends OpenSslContext
SslContext
which uses OpenSSL's SSL/TLS implementation.ctx, VERIFY_DEPTH
Constructor and Description |
---|
OpenSslServerContext(File certChainFile,
File keyFile)
Creates a new instance.
|
OpenSslServerContext(File certChainFile,
File keyFile,
String keyPassword)
Creates a new instance.
|
OpenSslServerContext(File certChainFile,
File keyFile,
String keyPassword,
Iterable<String> ciphers,
ApplicationProtocolConfig apn,
long sessionCacheSize,
long sessionTimeout)
Creates a new instance.
|
OpenSslServerContext(File certChainFile,
File keyFile,
String keyPassword,
TrustManagerFactory trustManagerFactory,
Iterable<String> ciphers,
ApplicationProtocolConfig config,
long sessionCacheSize,
long sessionTimeout)
Creates a new instance.
|
OpenSslServerContext(File certChainFile,
File keyFile,
String keyPassword,
TrustManagerFactory trustManagerFactory,
Iterable<String> ciphers,
OpenSslApplicationProtocolNegotiator apn,
long sessionCacheSize,
long sessionTimeout)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
OpenSslServerSessionContext |
sessionContext()
Returns the
SSLSessionContext object held by this context. |
applicationProtocolNegotiator, certificates, chooseTrustManager, cipherSuites, context, destroyPools, finalize, isClient, newEngine, newEngine, sessionCacheSize, sessionTimeout, setTicketKeys, stats
defaultClientProvider, defaultServerProvider, generateKeySpec, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext
public OpenSslServerContext(File certChainFile, File keyFile) throws SSLException
certChainFile
- an X.509 certificate chain file in PEM formatkeyFile
- a PKCS#8 private key file in PEM formatSSLException
public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword) throws SSLException
certChainFile
- an X.509 certificate chain file in PEM formatkeyFile
- a PKCS#8 private key file in PEM formatkeyPassword
- the password of the keyFile
.
null
if it's not password-protected.SSLException
public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, Iterable<String> ciphers, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws SSLException
certChainFile
- an X.509 certificate chain file in PEM formatkeyFile
- a PKCS#8 private key file in PEM formatkeyPassword
- the password of the keyFile
.
null
if it's not password-protected.ciphers
- the cipher suites to enable, in the order of preference.
null
to use the default cipher suites.apn
- Provides a means to configure parameters related to application protocol negotiation.sessionCacheSize
- the size of the cache used for storing SSL session objects.
0
to use the default value.sessionTimeout
- the timeout for the cached SSL session objects, in seconds.
0
to use the default value.SSLException
public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, ApplicationProtocolConfig config, long sessionCacheSize, long sessionTimeout) throws SSLException
certChainFile
- an X.509 certificate chain file in PEM formatkeyFile
- a PKCS#8 private key file in PEM formatkeyPassword
- the password of the keyFile
.
null
if it's not password-protected.ciphers
- the cipher suites to enable, in the order of preference.
null
to use the default cipher suites.config
- Application protocol config.sessionCacheSize
- the size of the cache used for storing SSL session objects.
0
to use the default value.sessionTimeout
- the timeout for the cached SSL session objects, in seconds.
0
to use the default value.SSLException
public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws SSLException
certChainFile
- an X.509 certificate chain file in PEM formatkeyFile
- a PKCS#8 private key file in PEM formatkeyPassword
- the password of the keyFile
.
null
if it's not password-protected.ciphers
- the cipher suites to enable, in the order of preference.
null
to use the default cipher suites.apn
- Application protocol negotiator.sessionCacheSize
- the size of the cache used for storing SSL session objects.
0
to use the default value.sessionTimeout
- the timeout for the cached SSL session objects, in seconds.
0
to use the default value.SSLException
public OpenSslServerSessionContext sessionContext()
SslContext
SSLSessionContext
object held by this context.sessionContext
in class OpenSslContext
Copyright © 2008–2015 The Netty Project. All rights reserved.