CdnGeneratorOptions

data class CdnGeneratorOptions(val prettyPrint: Boolean = false, val indentSize: Int = 2, val byteStringFormat: ByteStringFormat = ByteStringFormat.HEX, val useEmbeddedCborShorthand: Boolean = true, val useEmbeddedCborOpportunistically: Boolean = true, val useEmbeddedCertsOpportunistically: Boolean = true, val useApplicationExtensions: Boolean = true, val sortMapKeys: Boolean = false, val annotateCoseOpportunistically: Boolean = true, val extensionRegistry: CdnExtensionRegistry = CdnExtensionRegistry.Default)

Options for CDN text generation (serializing DataItem to CDN string).

Constructors

Link copied to clipboard
constructor(prettyPrint: Boolean = false, indentSize: Int = 2, byteStringFormat: ByteStringFormat = ByteStringFormat.HEX, useEmbeddedCborShorthand: Boolean = true, useEmbeddedCborOpportunistically: Boolean = true, useEmbeddedCertsOpportunistically: Boolean = true, useApplicationExtensions: Boolean = true, sortMapKeys: Boolean = false, annotateCoseOpportunistically: Boolean = true, extensionRegistry: CdnExtensionRegistry = CdnExtensionRegistry.Default)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether to heuristically detect COSE data structures (e.g., COSE_Sign1, COSE_Mac0, COSE_Key) and annotate their elements, header parameters, key parameters, and algorithms with descriptive comments.

Link copied to clipboard

Preferred formatting style for byte strings.

Link copied to clipboard

Extension registry for formatting application extensions.

Link copied to clipboard

Number of spaces per indentation level when prettyPrint is true.

Link copied to clipboard

Whether to insert line breaks and indentation for readability.

Link copied to clipboard

Whether map keys should be sorted.

Link copied to clipboard

Whether to format tagged items using application extension literals (e.g. dt'...', ip'...').

Link copied to clipboard

Whether to format any byte string using << ... >> embedded CBOR notation when it contains valid encoded CBOR.

Link copied to clipboard

Whether to use << ... >> shorthand notation for Tag 24 encoded CBOR byte strings.

Link copied to clipboard

Whether to format byte strings containing valid X.509 certificates using cert'''...''' PEM notation.