public final class TlsContext extends CrtResource
| 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.
|
acquireNativeHandle, addReferenceTo, close, collectNativeResources, getNativeHandle, isNativeResource, isNull, logNativeResources, releaseReferences, 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 CrtResourceCopyright © 2019. All rights reserved.