class PublicKey
source · line 103public
public class PublicKey internal constructor(private var handle: ULong) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
An independently owned native asymmetric public key. Close it after use.
function toDer
source · line 133public
public fun toDer(): Array<Byte>
Exports the live PublicKey as DER data in an independent managed value.
function close
source · line 142public
public override fun close(): Unit
- Overrides
close
Releases the native PublicKey handle. Repeated closes are harmless; other operations after close fail.
function toPem
source · line 137public
public fun toPem(): String
Exports the live PublicKey as PEM data in an independent managed value.
property algorithm
source · line 107public
public val algorithm: KeyAlgorithm
get: public read-only
The recognized key family of this live key.
getter get
source · line 107public
get(): KeyAlgorithm