Exports a cryptographic key to an external JWK object.
The parameters for the key export operation.
A Promise resolving to the exported key in JWK format.
The exportKey()
method of the KeyImporterExporter
interface
returns a cryptographic key in JWK format, facilitating interoperability and backup.
Imports an external key in JWK format.
The parameters for the key import operation.
A Promise resolving to the key identifier of the imported key.
The importKey()
method of the KeyImporterExporter
interface
takes as input an external key in JWK format and typically returns a key identifier reference
for the imported key.
The
KeyImporterExporter
interface provides methods for importing and exporting cryptographic keys. It includesimportKey()
for importing external keys, andexportKey()
for exporting a cryptographic key to an external JWK object.This interface is designed to handle various key formats and is adaptable for different cryptographic environments and requirements.