Skip to main content
Module

std/node/crypto.ts>KeyObject

Deno standard library
Go to Latest
class KeyObject
Re-export
import { KeyObject } from "https://deno.land/std@0.166.0/node/crypto.ts";

Constructors

new
KeyObject(type: KeyObjectType, handle: unknown)

Properties

readonly
asymmetricKeyDetails: AsymmetricKeyDetails | undefined
readonly
asymmetricKeyType: KeyType | undefined
readonly
symmetricKeySize: number | undefined
readonly
type: KeyObjectType
[kHandle]: unknown
[kKeyType]: KeyObjectType

Methods

equals(otherKeyObject: KeyObject): boolean
export(options: KeyExportOptions<"pem">): string | Buffer
export(options?: KeyExportOptions<"der">): Buffer