Package org.webpki.cbor
Class CBORDiagnosticNotation
java.lang.Object
org.webpki.cbor.CBORDiagnosticNotation
Class for converting diagnostic notation CBOR to CBOR.
Note: generated CBOR always conform to Deterministic Encoding.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CBORObject
Convert CBOR object in diagnostic notation, to CBOR.static ArrayList
<CBORObject> convertSequence
(String cborText) Convert CBOR sequence in diagnostic notation to CBOR.
-
Method Details
-
convert
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
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
-