Scoop API

scoop:scoop.tls:0.1.0

TlsIdentity

class TlsIdentity

source · line 15
public
public class TlsIdentity private constructor(retained: RetainedTlsIdentity) : Closeable

A retained certificate chain and matching private key for TLS authentication. Construction requires a nonempty chain with the leaf first; the supplied certificate and key wrappers retain their own ownership. Close this identity after use.

function close

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

Releases the retained certificate chain and key. Repeated closes are allowed.

property leafCertificateSha256

source · line 21
public
public val leafCertificateSha256: Array<Byte>

get: public read-only

SHA-256 digest of the first certificate's DER encoding.