Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class KeyObject
import { KeyObject } from "https://deno.land/std@0.159.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