Class Offering

  • All Implemented Interfaces:

    
    public final class Offering
    extends Resource
                        

    A class representing the Offering resource. Offering implements the Resource class and contains Offering specific data

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Offering.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ResourceMetadata getMetadata() An object containing fields about the resource
      OfferingData getData() The actual resource content.
      String getSignature() A message or resource signature is a detached compact JWS as defined in RFC-7515
      val offering = Offering.create(from, data)
      Unit setSignature(String signature) A message or resource signature is a detached compact JWS as defined in RFC-7515
      val offering = Offering.create(from, data)
      • Methods inherited from class tbdex.sdk.protocol.models.Resource

        sign, toString, verify
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getData

         OfferingData getData()

        The actual resource content. This will always be a JSON object. The Resource Kinds section specifies the content for each individual resource type

      • getSignature

         String getSignature()

        A message or resource signature is a detached compact JWS as defined in RFC-7515

        val offering = Offering.create(from, data)
      • setSignature

         Unit setSignature(String signature)

        A message or resource signature is a detached compact JWS as defined in RFC-7515

        val offering = Offering.create(from, data)