Options
All
  • Public
  • Public/Protected
  • All
Menu

An identified security principal (user or machine) that is responsible for data changes in the clone.

🚧 Application security extensions using AppPrincipal are currently experimental. See the discussion of general security principles for using m-ld, and the recommendations for this engine.

experimental

Hierarchy

  • AppPrincipal

Index

Properties

Methods

Properties

@id

@id: string

The principal's identifier, resolved according to the configured context.

Methods

Optional sign

  • sign(data: Buffer): Buffer | Promise<Buffer>
  • Sign the given data with the principal's key. This function may be required by the implementation of the domain's access control.

    Parameters

    • data: Buffer

      the data to sign

    Returns Buffer | Promise<Buffer>

Legend

  • Constructor
  • Property
  • Method
  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Protected method
  • Static method

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