Options
All
  • Public
  • Public/Protected
  • All
Menu

A transport security interceptor extension. Modifies data buffers sent to other clones via remotes, typically by applying cryptography.

Installed transport security can be independent of the actual remoting protocol, and therefore contribute to layered security.

experimental

Hierarchy

  • MeldTransportSecurity

Index

Methods

Methods

Optional setPrincipal

  • Initialises this extension with the application security principal. This method will only be called once.

    Parameters

    • principal: AppPrincipal | undefined

      the current application principal (user or machine)

    Returns void

wire

  • wire(data: Buffer, type: MeldMessageType, direction: "in" | "out", state: MeldReadState | null): Buffer | Promise<Buffer>
  • Check and/or transform wire data.

    Parameters

    • data: Buffer

      the data to operate on

    • type: MeldMessageType

      the message purpose

    • direction: "in" | "out"

      message direction relative to the local clone

    • state: MeldReadState | null

      the current state of the clone. This may be null, but only for bootstrap messages, i.e. type is http://control.m-ld.org/request/clock or http://control.m-ld.org/request/snapshot (and no prior state exists).

    Returns Buffer | Promise<Buffer>

Legend

  • Property
  • Method
  • Constructor

Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.8.1 Source code licensed MIT. Privacy policy