Scoop API

scoop:scoop.tls:0.1.0

TlsServerContext

class TlsServerContext

source · line 57
public
public class TlsServerContext private constructor(private val state: ContextState) : Closeable

Reusable server configuration built from a certificate chain, matching private key, and protocol options. The first certificate is the server leaf certificate. Close the context when no more sessions will be created.

function close

source · line 67
public
public override fun close(): Unit

Releases the context's native reference and prevents creation of further sessions.