An operational representation of "access" as defined by the Matter specification.

"Access" controls the operations a remote party may perform on a data field or cluster element.

Hierarchy (view full)

Implements

Constructors

  • Initialize from an Access.Definition or the access control DSL defined by the Matter Specification.

    Parameters

    Returns Access

Properties

definition: Definition
errors?: DefinitionError[]
fabric?: Fabric
readPriv?: Privilege
rw?: Rw
timed?: boolean
writePriv?: Privilege

Accessors

  • get complete(): boolean
  • Determine whether this access is fully specified. This means we know whether reads and/or writes are allowed and if so the required access levels.

    Returns boolean

  • get empty(): boolean
  • Returns boolean

  • get fabricScoped(): boolean
  • Returns boolean

  • get fabricSensitive(): boolean
  • Returns boolean

  • get readable(): boolean
  • Returns boolean

  • get valid(): boolean
  • Returns boolean

  • get writable(): boolean
  • Returns boolean

Methods

  • Test for logical equivalence.

    Parameters

    • other: any

    Returns boolean

  • Parameters

    • code: string
    • message: string

    Returns void

  • Returns void

  • Displays access using the standard Matter syntax.

    Returns string

  • Returns string

  • Parses standard Matter access syntax into an AccessFlag set. Extremely lenient.

    Parameters

    • access: Access
    • definition: string

    Returns Flags