A "timed operation" is a command or sequence of commands that operate with a failsafe timer that will abort the operation if it does not complete within a specific window.

FailsafeContext maintains the failsafe timer and tracks information required to rollback state if the operation aborts.

Timed operations are exclusive for a node.

Hierarchy (view full)

Constructors

Accessors

  • get associatedFabric(): undefined | Fabric
  • Returns undefined | Fabric

  • get csrSessionId(): undefined | number
  • Returns undefined | number

  • get fabricIndex(): undefined | FabricIndex
  • Returns undefined | FabricIndex

  • get forUpdateNoc(): undefined | boolean
  • Returns undefined | boolean

  • get hasRootCert(): boolean
  • Returns boolean

  • get rootCert(): undefined | Uint8Array
  • Returns undefined | Uint8Array

Methods

  • Parameters

    Returns Promise<FabricIndex>

  • Build a new Fabric object for a new fabric for the "AddNoc" case of the Operational Credentials cluster.

    Parameters

    • nocData: {
          adminVendorId: VendorId;
          caseAdminSubject: NodeId;
          icacValue: undefined | Uint8Array;
          ipkValue: Uint8Array;
          nocValue: Uint8Array;
      }
      • adminVendorId: VendorId
      • caseAdminSubject: NodeId
      • icacValue: undefined | Uint8Array
      • ipkValue: Uint8Array
      • nocValue: Uint8Array

    Returns Promise<Fabric>

  • Build a new Fabric object based on an existing fabric for the "UpdateNoc" case of the Operational Credentials cluster.

    Parameters

    • nocValue: Uint8Array
    • icacValue: undefined | Uint8Array

    Returns Promise<Fabric>

  • Returns Promise<void>

  • Returns Promise<void>

  • Handles a CSR from OperationalCredentials cluster and stores additional internal information for further validity checks.

    Parameters

    • isForUpdateNoc: boolean
    • sessionId: number

    Returns Uint8Array

  • Parameters

    • fabric: undefined | Fabric
    • expiryLengthSeconds: number

    Returns Promise<void>

  • Returns FabricIndex

  • Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Restore Cluster data when the FailSafe context expired.

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Returns Promise<void>

  • Handles adding a trusted root certificate from Operational Credentials cluster.

    Parameters

    • rootCert: Uint8Array

    Returns void

  • Returns Promise<void>

  • Parameters

    Returns Promise<void>