Object Rfq.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Rfq create(String to, String from, CreateRfqData rfqData, String protocol, String externalId) Creates a new Rfq message, autopopulating the id, creation time, and message kind.
      final Rfq parse(String payload, Boolean requireAllPrivateData) Takes an existing Rfq in the form of a json string and parses it into a Rfq object.
      final String generateRandomSalt() Generate random salt, used for salted hashes in RfqPrivateData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • create

         final Rfq create(String to, String from, CreateRfqData rfqData, String protocol, String externalId)

        Creates a new Rfq message, autopopulating the id, creation time, and message kind.

        Parameters:
        to - DID that the message is being sent to.
        from - DID of the sender.
        rfqData - Specific parameters relevant to a Rfq.
        protocol - version of the tbdex protocol.
        externalId - external reference for the Rfq.
        Returns:

        Rfq instance.

      • parse

         final Rfq parse(String payload, Boolean requireAllPrivateData)

        Takes an existing Rfq in the form of a json string and parses it into a Rfq object. Validates object structure and performs an integrity check using the message signature.

        Parameters:
        payload - The message as a json string.
        requireAllPrivateData - If true, validate that all private data properties are present and run integrity check.
        Returns:

        The json string parsed into a Rfq.