SslContext which works with libraries that support the
OpenSsl C library API.
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 |
|---|---|
| pack-priv abstract static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final OpenSslApplicationProtocolNegotiator | apn
Deprecated
as a consequence of
OpenSslApplicationProtocolNegotiator being deprecated.
|
| private volatile int | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv final ClientAuth | |
| protected long | ctx
The OpenSSL SSL_CTX object. |
| pack-priv final ReadWriteLock | |
| private static final int | |
| private static final Integer | |
| pack-priv final boolean | |
| pack-priv final OpenSslEngineMap | |
| pack-priv final Certificate[] | |
| private final ResourceLeakTracker | |
| private static final ResourceLeakDetector | |
| private static final InternalLogger | |
| private final int | |
| pack-priv static final OpenSslApplicationProtocolNegotiator | NONE_PROTOCOL_NEGOTIATOR
Deprecated
as a consequence of
OpenSslApplicationProtocolNegotiator being deprecated.
|
| pack-priv final String[] | |
| private final AbstractReferenceCounted | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv final boolean | |
| private final List | |
| pack-priv static final boolean | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | ReferenceCountedOpenSslContext(Iterable<String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, int mode, Certificate[] keyCertChain, ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, boolean leakDetection, Map.
Deprecated
as a consequence of
OpenSslApplicationProtocolNegotiator being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public ApplicationProtocolNegotiator | applicationProtocolNegotiator()
Implements abstract io.
Deprecated
as a consequence of
Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
ApplicationProtocolNegotiator being deprecated.
|
| protected static X509Certificate[] | |
| protected static X509TrustManager | |
| protected static X509KeyManager | |
| public final List | cipherSuites()
Implements abstract io. |
| public final long | context()
Deprecated
this method is considered unsafe as the returned pointer may be released later. Dont use it!
Returns the pointer to the SSL_CTX object for this ReferenceCountedOpenSslContext.
|
| private void | |
| pack-priv static void | |
| public int | getBioNonApplicationBufferSize()
Returns the size of the buffer used by the BIO for non-application based writes |
| public boolean | Returns: true because renegotiation is not supported.
Deprecated
{@deprecated Renegotiation is not supported}
|
| public final boolean | isClient()
Implements abstract io. true if and only if this context is for client-side.
|
| private static long | |
| public final SSLEngine | newEngine(BufferAllocator alloc, String
the non-authoritative name of the host peerHost, int the non-authoritative port peerPort)Implements abstract io. SSLEngine using advisory peer information.
|
| public final SSLEngine | newEngine(BufferAllocator alloc)
Implements abstract io. SSLEngine with the current configuration.
|
| pack-priv SSLEngine | |
| protected final SslHandler | newHandler(BufferAllocator alloc, boolean startTls)
Overrides io. |
| protected final SslHandler | newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls)
Overrides io. |
| protected SslHandler | newHandler(BufferAllocator alloc, boolean startTls, Executor executor)
Overrides io. |
| protected SslHandler | newHandler(BufferAllocator alloc, String peerHost, int peerPort, boolean startTls, Executor executor)
Overrides io. |
| private static int | |
| pack-priv static OpenSslKeyMaterialProvider | providerFor(KeyManagerFactory factory, String password)
Returns the |
| public final int | refCnt()
Implements io. |
| public final boolean | release()
Implements io. 1 and deallocates this object if the reference count reaches at
0.
|
| public final boolean | release(int decrement)
Implements io. decrement and deallocates this object if the reference
count reaches at 0.
|
| public final ReferenceCounted | |
| public final ReferenceCounted | retain(int increment)
Implements io. increment.
|
| private static ReferenceCountedOpenSslEngine | |
| public abstract OpenSslSessionContext | sessionContext()
Implements abstract io. SSLSessionContext object held by this context.
|
| public void | setBioNonApplicationBufferSize(int bioNonApplicationBufferSize)
Set the size of the buffer used by the BIO for non-application based writes (e.g. handshake, renegotiation, etc...). |
| pack-priv static void | |
| public final void | setPrivateKeyMethod(OpenSslPrivateKeyMethod
method to use. method)
Deprecated
use
Set the SslContextBuilder#option(SslContextOption, Object) with
OpenSslContextOption#PRIVATE_KEY_METHOD.
OpenSslPrivateKeyMethod to use.
|
| public void | setRejectRemoteInitiatedRenegotiation(boolean rejectRemoteInitiatedRenegotiation)
Deprecated
{@deprecated Renegotiation is not supported}
Specify if remote initiated renegotiation is supported or not.
|
| public final void | setTicketKeys(byte[] keys)
Deprecated
use
Sets the SSL session ticket keys of this context.
OpenSslSessionContext#setTicketKeys(byte[])
|
| public final void | setUseTasks(boolean useTasks)
Deprecated
use
SslContextBuilder#option(SslContextOption, Object) with
OpenSslContextOption#USE_TASKS.
|
| public final long | sslCtxPointer()
Deprecated
this method is considered unsafe as the returned pointer may be released later. Dont use it!
Returns the pointer to the SSL_CTX object for this ReferenceCountedOpenSslContext.
|
| public final OpenSslSessionStats | |
| pack-priv static long | |
| pack-priv static long | toBIO(BufferAllocator allocator, X509Certificate... certChain)
Return the pointer to a in-memory BIO
or |
| pack-priv static long | toBIO(BufferAllocator allocator, PemEncoded pem)
Copies the contents of the |
| pack-priv static OpenSslApplicationProtocolNegotiator | Returns: The results of the translationThe configuration which defines the translation config)
Deprecated
as a consequence of
Translate a OpenSslApplicationProtocolNegotiator being deprecated.
ApplicationProtocolConfig object to a
OpenSslApplicationProtocolNegotiator object.
|
| public final ReferenceCounted | touch()
Implements io. |
| public final ReferenceCounted | touch(Object hint)
Implements io. |
| pack-priv static boolean | |
| private static byte[] |