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, waitForNoResources
public 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
CrtRuntimeException
protected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately
in class CrtResource
protected void releaseNativeHandle()
releaseNativeHandle
in class CrtResource
protected static long tlsContextNew(long options) throws CrtRuntimeException
CrtRuntimeException
Copyright © 2021. All rights reserved.