Package tbdex.sdk.messages
Class Rfq
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRfq.Companion
-
Field Summary
Fields Modifier and Type Field Description private final MessageMetadatametadataprivate final RfqDatadataprivate final RfqPrivateDataprivateDataprivate final Stringsignaturepublic final static Rfq.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final MessageMetadatagetMetadata()Metadata about the message, including sender, recipient, and protocol information. final RfqDatagetData()The public data part of the RFQ, such as payin, payout, and offering details. final RfqPrivateDatagetPrivateData()Optional private data, which may include sensitive information. final StringgetSignature()The signature verifying the authenticity and integrity of the RFQ message. final StringtoJsonString()Serializes the RFQ to a JSON string. final UnitverifyOfferingRequirements(Offering offering)Verifies that the RFQ meets the requirements specified by an Offering. final UnitverifyAllPrivateData()Verifies all private data within the RFQ. final UnitverifyPresentPrivateData()Verifies that all present private data fields in the RFQ match their corresponding hashes. final Unitsign(BearerDid bearerDid)Signs the RFQ using the provided Bearer DID. final Unitverify()Verifies the RFQ's signature and validity. -
-
Method Detail
-
getMetadata
final MessageMetadata getMetadata()
Metadata about the message, including sender, recipient, and protocol information.
-
getData
final RfqData getData()
The public data part of the RFQ, such as payin, payout, and offering details.
-
getPrivateData
final RfqPrivateData getPrivateData()
Optional private data, which may include sensitive information.
-
getSignature
final String getSignature()
The signature verifying the authenticity and integrity of the RFQ message.
-
toJsonString
final String toJsonString()
Serializes the RFQ to a JSON string.
- Returns:
The serialized JSON string of the RFQ.
-
verifyOfferingRequirements
final Unit verifyOfferingRequirements(Offering offering)
Verifies that the RFQ meets the requirements specified by an Offering.
- Parameters:
offering- The offering against which the RFQ is being verified.
-
verifyAllPrivateData
final Unit verifyAllPrivateData()
Verifies all private data within the RFQ.
-
verifyPresentPrivateData
final Unit verifyPresentPrivateData()
Verifies that all present private data fields in the RFQ match their corresponding hashes.
-
sign
final Unit sign(BearerDid bearerDid)
Signs the RFQ using the provided Bearer DID.
- Parameters:
bearerDid- The Bearer DID used to sign the RFQ.
-
-
-
-