Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SignedHttpRequest

Index

Constructors

constructor

Methods

generatePublicKeyThumbprint

  • generatePublicKeyThumbprint(): Promise<string>

removeKeys

  • removeKeys(publicKeyThumbprint: string): Promise<boolean>
  • Removes cached keys from browser for given public key thumbprint

    Parameters

    • publicKeyThumbprint: string

      Public key digest (from generatePublicKeyThumbprint API)

    Returns Promise<boolean>

    If keys are properly deleted

signRequest

  • signRequest(payload: string, publicKeyThumbprint: string, claims?: object): Promise<string>
  • Generates a signed http request for the given payload with the given key.

    Parameters

    • payload: string

      Payload to sign (e.g. access token)

    • publicKeyThumbprint: string

      Public key digest (from generatePublicKeyThumbprint API)

    • Optional claims: object

      Additional claims to include/override in the signed JWT

    Returns Promise<string>

    Pop token signed with the corresponding private key

Generated using TypeDoc