Scoop API

scoop:scoop.crypto:0.1.0

Certificate

class Certificate

source · line 36
public
public class Certificate internal constructor(private var handle: ULong) : Closeable

An owned parsed X.509 certificate. Reading or exporting it does not establish trust; use TrustStore.verify for chain, time, purpose, and optional peer identity checks.

function close

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

Releases the native Certificate handle. Repeated closes are harmless; other operations after close fail.

function toDer

source · line 97
public
public fun toDer(): Array<Byte>

Exports the live Certificate as DER data in an independent managed value.

function toPem

source · line 101
public
public fun toPem(): String

Exports the live Certificate as PEM data in an independent managed value.

function verifySignature

source · line 111
public
public fun verifySignature(issuer: PublicKey): Boolean

Checks only this certificate's signature against the supplied issuer key. It does not validate a trust chain, validity time, purpose, or peer identity.

function publicKey

source · line 105
public
public fun publicKey(): PublicKey

Returns an independently owned public key extracted from this certificate.