Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles persistent storage and retrieval of network encryption keys

Hierarchy

  • KeyStore

Index

Methods

associate

  • associate(key: Buffer): Promise<string>
  • Create an id for a new client (possibly requesting it from the user), store it, then resolve with the new id

    Parameters

    • key: Buffer

    Returns Promise<string>

retrieve

  • retrieve(id: string): Buffer | null | undefined
  • Retrieve key stored for client id

    Parameters

    • id: string

    Returns Buffer | null | undefined