Skip to main content

KeyStorageFacade

@icure/medical-device-sdk / KeyStorageFacade

Interface: KeyStorageFacade

Implemented by

Table of contents

Methods

Methods

deleteKeypair

deleteKeypair(key): Promise<void>

Delete the keyPair associated to the provided key

Parameters

NameTypeDescription
keystringKey of the value to delete

Returns

Promise<void>

Defined in

node_modules/@icure/api/icc-x-api/storage/KeyStorageFacade.d.ts:27


getKeypair

getKeypair(key): Promise<undefined | { privateKey: JsonWebKey ; publicKey: JsonWebKey }>

Get the keyPair associated to the provided key

Parameters

NameTypeDescription
keystringKey of the value to retrieve

Returns

Promise<undefined | { privateKey: JsonWebKey ; publicKey: JsonWebKey }>

The keyPair associated to the provided key or undefined if not found.

Defined in

node_modules/@icure/api/icc-x-api/storage/KeyStorageFacade.d.ts:19


getPrivateKey

getPrivateKey(key): Promise<undefined | JsonWebKey>

Returns the privateKey of the provided key from the storage

Parameters

NameTypeDescription
keystringKey of the value to retrieve

Returns

Promise<undefined | JsonWebKey>

The privateKey associated to the provided key or undefined if not found.

Defined in

node_modules/@icure/api/icc-x-api/storage/KeyStorageFacade.d.ts:13


getPublicKey

getPublicKey(key): Promise<undefined | JsonWebKey>

Returns the publicKey of the provided key from the storage

Parameters

NameTypeDescription
keystringKey of the value to retrieve

Returns

Promise<undefined | JsonWebKey>

The publicKey associated to the provided key or undefined if not found.

Defined in

node_modules/@icure/api/icc-x-api/storage/KeyStorageFacade.d.ts:7


storeKeyPair

storeKeyPair(key, keyPair): Promise<void>

Stores the given keyPair under the given key in the storage.

Parameters

NameTypeDescription
keystringThe id of the entry in storage
keyPairObjectshould be JWK
keyPair.privateKeyJsonWebKey-
keyPair.publicKeyJsonWebKey-

Returns

Promise<void>

Defined in

node_modules/@icure/api/icc-x-api/storage/KeyStorageFacade.d.ts:33