Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalCryptographyClient

Package version

A client used to perform local cryptographic operations with JSON Web Keys.

internal

Hierarchy

  • LocalCryptographyClient

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

key

A JSON Web Key, used for the local cryptography operations.

vaultUrl

vaultUrl: string = ""

The base URL to the vault. Since this is a local cryptography client the vaultUrl is empty.

Accessors

keyId

  • get keyId(): string | undefined

Methods

encrypt

verifyData

  • Verify the signed block of data

    Example usage:

    let client = new LocalCryptographyClient(jsonWebKey, credentials);
    let result = await client.verifyData("RS256", signedMessage, signature);

    Parameters

    • algorithm: LocalSupportedAlgorithmName

      The algorithm to use to verify with.

    • data: Uint8Array

      The signed block of data to verify.

    • signature: Uint8Array

      The signature to verify the block against.

    Returns Promise<VerifyResult>

wrapKey

Generated using TypeDoc