Class CBORDiagnosticNotation

java.lang.Object
org.webpki.cbor.CBORDiagnosticNotation

public class CBORDiagnosticNotation extends Object
Class for converting diagnostic notation CBOR to CBOR.

Note: generated CBOR always conform to Deterministic Encoding.

  • Method Details

    • convert

      public static CBORObject convert(String cborText)
      Convert CBOR object in diagnostic notation, to CBOR.
      Parameters:
      cborText - String holding a CBOR object in diagnostic (textual) format.
      Returns:
      CBOR object
      Throws:
      CBORException
    • convertSequence

      public static ArrayList<CBORObject> convertSequence(String cborText)
      Convert CBOR sequence in diagnostic notation to CBOR.
      Parameters:
      cborText - String holding zero or more comma-separated CBOR objects in diagnostic (textual) format.
      Returns:
      Array holding zero or more CBOR objects
      Throws:
      CBORException