Interface for crypto functions used by library

Hierarchy

  • ICrypto

Implemented by

Methods

  • base64 decode string

    Parameters

    • input: string

    Returns string

  • base64 Encode string

    Parameters

    • input: string

    Returns string

  • Removes all cryptographic keys from IndexedDB storage

    Returns Promise<boolean>

  • Returns the SHA-256 hash of an input string

    Parameters

    • plainText: string

    Returns Promise<string>

  • Removes cryptographic keypair from key store matching the keyId passed in

    Parameters

    • kid: string

    Returns Promise<boolean>

  • Returns a signed proof-of-possession token with a given acces token that contains a cnf claim with the required kid.

    Parameters

    Returns Promise<string>

Generated using TypeDoc