class TlsIdentity
source · line 15public
public class TlsIdentity private constructor(retained: RetainedTlsIdentity) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· 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.
property isClosed
source · line 50public
public val isClosed: Boolean
get: public read-only
Whether this identity has released its retained native state.
getter get
source · line 50public
get(): Boolean
function close
source · line 63public
public override fun close(): Unit
- Overrides
close
Releases the retained certificate chain and key. Repeated closes are allowed.
property leafCertificateSha256
source · line 21public
public val leafCertificateSha256: Array<Byte>
get: public read-only
SHA-256 digest of the first certificate's DER encoding.
constructor constructor
source · line 23public
constructor(certificates: List<Certificate>, privateKey: PrivateKey)
parameter certificates
source · line 23public
certificates: List<Certificate>
parameter privateKey
source · line 23public
privateKey: PrivateKey