public class TlsContext extends CrtResource
CrtResource.ResourceInstance| Constructor and Description |
|---|
TlsContext()
Creates a new Client TlsContext.
|
TlsContext(TlsContextOptions options)
Creates a new Client TlsContext.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canReleaseReferencesImmediately()
Determines whether a resource releases its dependencies at the same time the native handle is released or if it waits.
|
protected void |
releaseNativeHandle()
Frees all native resources associated with the context.
|
protected static long |
tlsContextNew(long options) |
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResourcespublic TlsContext(TlsContextOptions options) throws CrtRuntimeException
options - A set of options for this contextCrtRuntimeException - If the provided options are malformed or the system is unable
to allocate space for a native tls contextpublic TlsContext()
throws CrtRuntimeException
CrtRuntimeExceptionprotected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately in class CrtResourceprotected void releaseNativeHandle()
releaseNativeHandle in class CrtResourceprotected static long tlsContextNew(long options)
throws CrtRuntimeException
CrtRuntimeExceptionCopyright © 2021. All rights reserved.