Class CBORSequenceBuilder

java.lang.Object
org.webpki.cbor.CBORSequenceBuilder

public class CBORSequenceBuilder extends Object
Class for creating CBOR sequences.
  • Constructor Details

  • Method Details

    • add

      public CBORSequenceBuilder add(CBORObject object)
      Add object to CBOR sequence.
      Parameters:
      object - Object to be appended
      Returns:
      this
    • encode

      public byte[] encode()
      Get completed CBOR sequence.
      Returns:
      CBOR sequence
    • toString

      public String toString()
      Render CBOR sequence in diagnostic notation.
      Overrides:
      toString in class Object
      Returns:
      String