IssuerNamespaces

A data structure for representing IssuerNameSpaces in ISO/IEC 18013-5:2021.

Use fromDataItem to parse CBOR and toDataItem to generate CBOR.

Constructors

Link copied to clipboard
constructor(data: Map<String, Map<String, IssuerSignedItem>>)

Types

Link copied to clipboard
class Builder(dataElementRandomSize: Int = 16, randomProvider: Random = Random)

A builder for IssuerNamespaces.

Link copied to clipboard
object Companion
Link copied to clipboard
data class DataElementBuilder(val namespaceName: String)

A builder for populating a namespace in a IssuerNamespaces.

Properties

Link copied to clipboard

map from namespace name to a map from data element name to IssuerSignedItem.

Functions

Link copied to clipboard

Returns a new object filtering the IssuerSignedItem so they match a request.

Link copied to clipboard
suspend fun getValueDigests(digestAlgorithm: Algorithm): Map<String, Map<Long, ByteString>>

Calculate digests suitable for inclusion in a org.multipaz.mdoc.mso.MobileSecurityObject.

Link copied to clipboard

Generate IssuerNameSpaces CBOR