This class sets up the Internet Of Me (IoM), after both parties approved the IoM.

The initiator of the IoMRequest will become the main identity for both participants of the IoM.

High level stuff is:

  • Setting up 'leute' and 'identities' correctly if an IoM request was approved by both parties
  • Managing the IoM group that can be used to share data to all IoM instances

Setting up 'leute' and 'identities' correctly involves:

  • Generate public/secret key pairs for the remote person
  • Generate an instance with complete keys (-> local instance object)
  • Create a OneCommunicationEndpoint with the remote person, the new keys and local instance
  • Move the remote person to my own "Someone-object"
  • If the IoM was initiated by the remote person: Switch my main id to the remote person id

Everything related to negotiating an IoM is done by the IoMRequestManager that can be accessed by the public property 'requestManager'. There you can create new IoM requests, affirm existing requests and list all pending IoMRequests.

Constructors

  • Constructor

    Parameters

    • leuteModel: default

      The leute model used in order to set up the IoM after a successful IoM request

    • commServerUrl: string

      The comm server url used to create the new OneInstanceEndpoint representing the new IoM identity.

    Returns default

Properties

requestManager: default
IoMGroupName: "IoM" = 'IoM'

Methods