Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class KeyObject
import { KeyObject } from "https://deno.land/std@0.177.0/node/internal/crypto/keys.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