SslContext which uses OpenSSL's SSL/TLS implementation.
Instances of this class must be released or else native memory will leak!
Instances of this class must not be released before any ReferenceCountedOpenSslEngine
which depends upon the instance of this class is released. Otherwise if any method of
ReferenceCountedOpenSslEngine is called which uses this class's JNI resources the JVM may crash.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final InternalLogger | |
| private final OpenSslServerSessionContext |
| Access | Constructor and Description |
|---|---|
| pack-priv | ReferenceCountedOpenSslServerContext(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.
|
| pack-priv | ReferenceCountedOpenSslServerContext(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 |
|---|---|
| pack-priv static OpenSslServerSessionContext | newSessionContext(ReferenceCountedOpenSslContext thiz, long ctx, OpenSslEngineMap engineMap, X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, String keyStore, long sessionCacheSize, long sessionTimeout)
|
| public OpenSslServerSessionContext | sessionContext()
Implements abstract io. SSLSessionContext object held by this context.
|
| private static void |
| ID | back to summary |
|---|---|
| private static final byte[] ID | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger Hides io. | |
| sessionContext | back to summary |
|---|---|
| private final OpenSslServerSessionContext sessionContext | |
| ReferenceCountedOpenSslServerContext | back to summary |
|---|---|
| pack-priv ReferenceCountedOpenSslServerContext(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. | |
| ReferenceCountedOpenSslServerContext | back to summary |
|---|---|
| pack-priv ReferenceCountedOpenSslServerContext(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 | |
| newSessionContext | back to summary |
|---|---|
| pack-priv static OpenSslServerSessionContext newSessionContext(ReferenceCountedOpenSslContext thiz, long ctx, OpenSslEngineMap engineMap, X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, String keyStore, long sessionCacheSize, long sessionTimeout) throws SSLException | |
| sessionContext | back to summary |
|---|---|
| public OpenSslServerSessionContext sessionContext() Implements abstract io. Doc from io. Returns the
| |
| setVerifyCallback | back to summary |
|---|---|
private static void setVerifyCallback(long ctx, OpenSslEngineMap engineMap, X509TrustManager manager)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final X509ExtendedTrustManager |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | verify(ReferenceCountedOpenSslEngine engine, X509Certificate[] peerCerts, String auth)
Implements abstract io. |
| manager | back to summary |
|---|---|
| private final X509ExtendedTrustManager manager | |
| ExtendedTrustManagerVerifyCallback | back to summary |
|---|---|
| pack-priv ExtendedTrustManagerVerifyCallback(OpenSslEngineMap engineMap, X509ExtendedTrustManager manager) | |
| verify | back to summary |
|---|---|
| pack-priv void verify(ReferenceCountedOpenSslEngine engine, X509Certificate[] peerCerts, String auth) throws Exception Implements abstract io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final OpenSslEngineMap | |
| private final OpenSslKeyMaterialManager |
| Access | Constructor and Description |
|---|---|
| pack-priv | OpenSslServerCertificateCallback(OpenSslEngineMap engineMap, OpenSslKeyMaterialManager keyManagerHolder)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | handle(long
the SSL instance ssl, byte[] an array of the key types on client-mode or keyTypeBytes, byte[][] null on server-mode.the principals or asn1DerEncodedPrincipals)null.Implements io. |
| engineMap | back to summary |
|---|---|
| private final OpenSslEngineMap engineMap | |
| keyManagerHolder | back to summary |
|---|---|
| private final OpenSslKeyMaterialManager keyManagerHolder | |
| OpenSslServerCertificateCallback | back to summary |
|---|---|
| pack-priv OpenSslServerCertificateCallback(OpenSslEngineMap engineMap, OpenSslKeyMaterialManager keyManagerHolder) | |
| handle | back to summary |
|---|---|
| public void handle(long ssl, byte[] keyTypeBytes, byte[][] asn1DerEncodedPrincipals) throws Exception Implements io. Doc from io. Called during cert selection. If a certificate chain / key should be used
| |
| Modifier and Type | Field and Description |
|---|---|
| private final OpenSslEngineMap |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | match(long
the SSL instance ssl, String the hostname to match. hostname)Implements io. true if the hostname was matched and so SNI should be allowed.
|
| engineMap | back to summary |
|---|---|
| private final OpenSslEngineMap engineMap | |
| OpenSslSniHostnameMatcher | back to summary |
|---|---|
| pack-priv OpenSslSniHostnameMatcher(OpenSslEngineMap engineMap) | |
| match | back to summary |
|---|---|
| public boolean match(long ssl, String hostname) Implements io. Doc from io. Returns | |
| Modifier and Type | Field and Description |
|---|---|
| private final X509TrustManager |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | verify(ReferenceCountedOpenSslEngine engine, X509Certificate[] peerCerts, String auth)
Implements abstract io. |
| manager | back to summary |
|---|---|
| private final X509TrustManager manager | |
| TrustManagerVerifyCallback | back to summary |
|---|---|
| pack-priv TrustManagerVerifyCallback(OpenSslEngineMap engineMap, X509TrustManager manager) | |
| verify | back to summary |
|---|---|
| pack-priv void verify(ReferenceCountedOpenSslEngine engine, X509Certificate[] peerCerts, String auth) throws Exception Implements abstract io.
| |