Go to Latest
class KeyObject
import { KeyObject } from "https://dotland.deno.dev/std@0.145.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
export(options?: JwkKeyExportOptions): JsonWebKey
export(_options?: unknown): string | Buffer | JsonWebKey

Static Methods

from(key: CryptoKey): KeyObject