Class TlsContext

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    ClientTlsContext, ServerTlsContext

    public class TlsContext
    extends CrtResource
    This class wraps the aws_tls_context from aws-c-io to provide access to TLS configuration contexts in the AWS Common Runtime.
    • Constructor Detail

      • TlsContext

        public TlsContext​(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
      • TlsContext

        public TlsContext()
                   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.
        Throws:
        CrtRuntimeException