SslContext which uses OpenSSL's SSL/TLS implementation.
This class will use a finalizer to ensure native resources are automatically cleaned up. To avoid finalizers
and manually release the native memory see ReferenceCountedOpenSslServerContext.
| Modifier and Type | Field and Description |
|---|---|
| private final OpenSslServerSessionContext |
| Access | Constructor and Description |
|---|---|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile)
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword)keyFile.
null if it's not password-protected.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, Iterable<String> keyFile.
null if it's not password-protected.the cipher suites to enable, in the order of preference.
ciphers, ApplicationProtocolConfig null to use the default cipher suites.Provides a means to configure parameters related to application protocol negotiation. apn, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, Iterable<String> keyFile.
null if it's not password-protected.the cipher suites to enable, in the order of preference.
ciphers, Iterable<String> null to use the default cipher suites.the application layer protocols to accept, in the order of preference.
nextProtocols, long null to disable TLS NPN/ALPN extension.the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> keyFile.
null if it's not password-protected.the cipher suites to enable, in the order of preference.
ciphers, ApplicationProtocolConfig null to use the default cipher suites.Application protocol config. config, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> keyFile.
null if it's not password-protected.the cipher suites to enable, in the order of preference.
ciphers, OpenSslApplicationProtocolNegotiator null to use the default cipher suites.Application protocol negotiator. apn, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, Iterable<String> keyFile.
null if it's not password-protected.the cipher suites to enable, in the order of preference.
ciphers, CipherSuiteFilter null to use the default cipher suites.a filter to apply over the supplied list of ciphers cipherFilter, ApplicationProtocolConfig Provides a means to configure parameters related to application protocol negotiation. apn, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate collection file in PEM format.
This provides the certificate collection used for mutual authentication.
trustCertCollectionFile, TrustManagerFactory null to use the system defaultthe trustManagerFactory, File TrustManagerFactory that provides the TrustManagers
that verifies the certificates sent from clients.
null to use the default or the results of parsing
trustCertCollectionFile.an X.509 certificate chain file in PEM format keyCertChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, KeyManagerFactory keyFile.
null if it's not password-protected.the keyManagerFactory, Iterable<String> KeyManagerFactory that provides the KeyManagers
that is used to encrypt data being sent to clients.
null to use the default or the results of parsing
keyCertChainFile and keyFile.the cipher suites to enable, in the order of preference.
ciphers, CipherSuiteFilter null to use the default cipher suites.a filter to apply over the supplied list of ciphers
Only required if cipherFilter, ApplicationProtocolConfig provider is SslProvider#JDKProvides a means to configure parameters related to application protocol negotiation. config, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> keyFile.
null if it's not password-protected.the cipher suites to enable, in the order of preference.
ciphers, CipherSuiteFilter null to use the default cipher suites.a filter to apply over the supplied list of ciphers cipherFilter, ApplicationProtocolConfig Application protocol config. config, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| public | OpenSslServerContext(File
an X.509 certificate chain file in PEM format certChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> keyFile.
null if it's not password-protected.the cipher suites to enable, in the order of preference.
ciphers, CipherSuiteFilter null to use the default cipher suites.a filter to apply over the supplied list of ciphers cipherFilter, OpenSslApplicationProtocolNegotiator Application protocol negotiator. apn, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder}
|
| public | OpenSslServerContext(File
an X.509 certificate collection file in PEM format.
This provides the certificate collection used for mutual authentication.
trustCertCollectionFile, TrustManagerFactory null to use the system defaultthe trustManagerFactory, File TrustManagerFactory that provides the TrustManagers
that verifies the certificates sent from clients.
null to use the default or the results of parsing
trustCertCollectionFile.an X.509 certificate chain file in PEM format keyCertChainFile, File a PKCS#8 private key file in PEM format keyFile, String the password of the keyPassword, KeyManagerFactory keyFile.
null if it's not password-protected.the keyManagerFactory, Iterable<String> KeyManagerFactory that provides the KeyManagers
that is used to encrypt data being sent to clients.
null to use the default or the results of parsing
keyCertChainFile and keyFile.the cipher suites to enable, in the order of preference.
ciphers, CipherSuiteFilter null to use the default cipher suites.a filter to apply over the supplied list of ciphers
Only required if cipherFilter, OpenSslApplicationProtocolNegotiator provider is SslProvider#JDKApplication Protocol Negotiator object apn, long the size of the cache used for storing SSL session objects.
sessionCacheSize, long 0 to use the default value.the timeout for the cached SSL session objects, in seconds.
sessionTimeout)0 to use the default value.
Deprecated
use
Creates a new instance.
SslContextBuilder
|
| pack-priv | OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map.
|
| private | OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map.
Deprecated
as a consequence of
OpenSslApplicationProtocolNegotiator being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public OpenSslServerSessionContext | sessionContext()
Implements abstract io. SSLSessionContext object held by this context.
|
| sessionContext | back to summary |
|---|---|
| private final OpenSslServerSessionContext sessionContext | |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, Iterable<String> ciphers, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, Iterable<String> ciphers, Iterable<String> nextProtocols, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, ApplicationProtocolConfig config, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File trustCertCollectionFile, TrustManagerFactory trustManagerFactory, File keyCertChainFile, File keyFile, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig config, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig config, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File certChainFile, File keyFile, String keyPassword, TrustManagerFactory trustManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated use Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| public OpenSslServerContext(File trustCertCollectionFile, TrustManagerFactory trustManagerFactory, File keyCertChainFile, File keyFile, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout) throws SSLException
Deprecated Creates a new instance.
| |
| OpenSslServerContext | back to summary |
|---|---|
| pack-priv OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map. | |
| OpenSslServerContext | back to summary |
|---|---|
| private OpenSslServerContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStore, Map. Deprecated as a consequence of
| |
| sessionContext | back to summary |
|---|---|
| public OpenSslServerSessionContext sessionContext() Implements abstract io. Doc from io. Returns the
| |