Package software.amazon.awssdk.crt.io
Class ClientTlsContext
- java.lang.Object
-
- software.amazon.awssdk.crt.CrtResource
-
- software.amazon.awssdk.crt.io.TlsContext
-
- software.amazon.awssdk.crt.io.ClientTlsContext
-
- All Implemented Interfaces:
AutoCloseable
public final class ClientTlsContext extends TlsContext
This class wraps the aws_tls_context from aws-c-io to provide access to TLS configuration contexts in the AWS Common Runtime.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
CrtResource.ResourceInstance
-
-
Constructor Summary
Constructors Constructor Description ClientTlsContext(TlsContextOptions options)
Creates a new Client TlsContext.
-
Method Summary
-
Methods inherited from class software.amazon.awssdk.crt.io.TlsContext
canReleaseReferencesImmediately, releaseNativeHandle, tlsContextNew
-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResources
-
-
-
-
Constructor Detail
-
ClientTlsContext
public ClientTlsContext(TlsContextOptions options) throws CrtRuntimeException
Creates a new Client TlsContext. There are significant native resources consumed to create a TlsContext, so most applications will only need to create one and re-use it for all connections.- Parameters:
options
- A set of options for this context- Throws:
CrtRuntimeException
- If the provided options are malformed or the system is unable to allocate space for a native tls context
-
-