Edge Agent
Constructors
Initializes the EdgeAgent with the given dependencies.
Initializes the EdgeAgent constructor.
Functions
Accepts a Prism Onboarding invitation and performs the onboarding process
Accepts an Out-of-Band (DIDComm), verifies if it contains attachments or not. If it does contain attachments means is a contactless request presentation. If it does not, it just creates a pair and establishes a connection.
Performs a backup operation.
This function creates a new Peer DID, stores it in pluto database and updates the mediator if requested.
This method create a new Prism DID, that can be used to identify the agent and interact with other agents.
This method returns a list of all the VerifiableCredentials stored locally.
This method returns all DID pairs
This method returns all registered PeerDIDs.
This method fetches a DIDInfo from local storage.
Handles the messages events and return a publisher of the messages.
Handles the received messages events and return a publisher of the messages.
This method provides a channel to listen for credentials that are revoked. As long as there is an observer collecting from this flow the updates will keep happening.
Parses the given string as an invitation
This function creates a Presentation from a request verification.
This function prepares a request credential from an offer given the subject DID.
This function parses an issued credential message, stores, and returns the verifiable credential.
Restores a Pluto instance from a JWE (JSON Web Encryption) string.
This method registers a DID pair into the local database.
Registers a peer DID with the specified DID and private keys.
Sends a DIDComm message through HTTP using mercury and returns a message if this is returned immediately by the REST endpoint.
Sets up a mediator DID for communication with the specified DID.
Start fetching the messages from the mediator.
Stops the EdgeAgent. The function sets the state of EdgeAgent to State.STOPPING. All ongoing events that was created by the EdgeAgent are stopped. After all the events are stopped the state of the EdgeAgent is set to State.STOPPED.
Stop fetching messages
Updates the mediator with the specified DID by updating the key list with the given DID.