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 = Crypto.secureRandom)

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
fun filter(requestedClaims: List<MdocRequestedClaim>, iso18013AgeOverSubstitution: Boolean = true): IssuerNamespaces

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

Link copied to clipboard

Validates the internal structure of this IssuerNamespaces.

Link copied to clipboard

Validates that all data elements in this IssuerNamespaces are authorized by and match the digests in the given MobileSecurityObject.