Module

std/node/crypto.ts>KeyObject

Deno standard library
Go to Latest
class KeyObject
import { KeyObject } from "https://deno.land/std@0.145.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
export(_options?: unknown): string | Buffer | JsonWebKey
import KeyObject
import { KeyObject } from "https://deno.land/std@0.145.0/node/crypto.ts";