Skip to main content

Class: EphemeralKeyHandler

Implements

Constructors

new EphemeralKeyHandler()

new EphemeralKeyHandler(): EphemeralKeyHandler

Returns

EphemeralKeyHandler

Methods

getPublicKey()

getPublicKey(): Promise<string>

Get the public key of the confgured key service

Returns

Promise<string>

Implementation of

KeyHandler.getPublicKey


unwrapKey()

unwrapKey(wrappedKey): Promise<Buffer>

Unwrap a symmetric encryption key with the configured private key

Parameters

wrappedKey

Buffer

Returns

Promise<Buffer>

The unwrapped key as Buffer

Implementation of

KeyHandler.unwrapKey