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

  • base64 URL safe encoded string

    Parameters

    • input: string

    Returns string

  • Removes all cryptographic keys from IndexedDB storage

    Returns Promise<boolean>

  • Stringifies and base64Url encodes input public key

    Parameters

    • inputKid: string

    Returns string

    Base64Url encoded public key

  • 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