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 | |
| pack-priv static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final OpenSslSessionContext | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | ReferenceCountedOpenSslClientContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize, long sessionTimeout, boolean enableOcsp, String keyStore, Map.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static OpenSslSessionContext | 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 OpenSslSessionContext | sessionContext()
Implements abstract io. SSLSessionContext object held by this context.
|
| private static void |
| sessionContext | back to summary |
|---|---|
| private final OpenSslSessionContext sessionContext | |
| SUPPORTED_KEY_TYPES | back to summary |
|---|---|
| private static final Set<String> SUPPORTED_KEY_TYPES | |
| ReferenceCountedOpenSslClientContext | back to summary |
|---|---|
| pack-priv ReferenceCountedOpenSslClientContext(X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable<String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize, long sessionTimeout, boolean enableOcsp, String keyStore, Map. | |
| newSessionContext | back to summary |
|---|---|
| pack-priv static OpenSslSessionContext 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 OpenSslSessionContext 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 | OpenSslClientCertificateCallback(OpenSslEngineMap engineMap, OpenSslKeyMaterialManager keyManagerHolder)
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| 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. |
| private static Set | Returns: supported key types that can be used inX509KeyManager.chooseClientAlias and
X509ExtendedKeyManager.chooseEngineClientAlias.ClientCertificateType values provided by the server.
See https://www.ietf.org/assignments/tls-parameters/tls-parameters.xml.Gets the supported key types for client certificates. |
| engineMap | back to summary |
|---|---|
| private final OpenSslEngineMap engineMap | |
| keyManagerHolder | back to summary |
|---|---|
| private final OpenSslKeyMaterialManager keyManagerHolder | |
| OpenSslClientCertificateCallback | back to summary |
|---|---|
| pack-priv OpenSslClientCertificateCallback(OpenSslEngineMap engineMap, OpenSslKeyMaterialManager keyManagerHolder) | |
| clientKeyType | back to summary |
|---|---|
| private static String clientKeyType(byte clientCertificateType) | |
| 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
| |
| supportedClientKeyTypes | back to summary |
|---|---|
| private static Set Gets the supported key types for client certificates.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | OpenSslClientSessionContext(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider)
|
| OpenSslClientSessionContext | back to summary |
|---|---|
| pack-priv OpenSslClientSessionContext(ReferenceCountedOpenSslContext context, OpenSslKeyMaterialProvider provider) | |
| 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.
| |