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 diagnostic notation CBOR to CBOR.
      Parameters:
      cborText - String holding diagnostic (textual) CBOR
      Returns:
      CBORObject
      Throws:
      CBORException
    • convertSequence

      public static CBORObject[] convertSequence(String cborText)
      Convert diagnostic notation CBOR sequence to CBOR.
      Parameters:
      cborText - String holding diagnostic (textual) CBOR
      Returns:
      CBORObject[] Non-empty array of CBOR objects
      Throws:
      CBORException