class Certificate
source · line 36public class Certificate internal constructor(private var handle: ULong) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· 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 145public override fun close(): Unit
- Overrides
close
Releases the native Certificate handle. Repeated closes are harmless; other operations after close fail.
property serialNumber
source · line 48public val serialNumber: String
get: public read-only
The certificate's serial number as text.
getter get
source · line 48get(): String
function toDer
source · line 97public fun toDer(): Array<Byte>
Exports the live Certificate as DER data in an independent managed value.
function toPem
source · line 101public fun toPem(): String
Exports the live Certificate as PEM data in an independent managed value.
function subjectAlternativeNames
source · line 118public fun subjectAlternativeNames(): Array<SubjectAlternativeName>
Returns the certificate's DNS and IP subject alternative names.
property issuer
source · line 44public val issuer: String
get: public read-only
The backend's textual representation of the issuer name.
getter get
source · line 44get(): String
property notAfter
source · line 56public val notAfter: Instant
get: public read-only
The end of the certificate's validity interval.
getter get
source · line 56get(): Instant
property notBefore
source · line 52public val notBefore: Instant
get: public read-only
The beginning of the certificate's validity interval.
getter get
source · line 52get(): Instant
function verifySignature
source · line 111public 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.
parameter issuer
source · line 111issuer: PublicKey
property subject
source · line 40public val subject: String
get: public read-only
The backend's textual representation of the subject name.
getter get
source · line 40get(): String
function publicKey
source · line 105public fun publicKey(): PublicKey
Returns an independently owned public key extracted from this certificate.