Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Caveat

typedef

{Object} Caveat

description

A caveat is a class with a condition, value and a comparator. They are used in macaroons to evaluate the validity of a macaroon. The Caveat class provides a method for turning a string into a caveat object (decode) and a way to turn a caveat into a string that can be encoded into a macaroon.

Hierarchy

  • Caveat

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

comp

comp: string

condition

condition: string

value

value: string | number

Methods

encode

  • encode(): string
  • Returns string

    Caveat as string value. e.g. expiration=1576799124987

fromOptions

Static decode

Generated using TypeDoc