Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SdJwtVc support #53

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[DocumentClaim](index.md)/[identifier](identifier.md)

# identifier

[androidJvm]\
open
val [identifier](identifier.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[DocumentClaim](index.md)

# DocumentClaim

sealed class [DocumentClaim](index.md)

Represents a claim of a document.

#### Inheritors

| |
|----------------------------------------------|
| [MsoMdocClaim](../-mso-mdoc-claim/index.md) |
| [SdJwtVcClaim](../-sd-jwt-vc-claim/index.md) |

## Properties

| Name | Summary |
|-----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [identifier](identifier.md) | [androidJvm]<br>open val [identifier](identifier.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>The identifier of the claim. |
| [rawValue](raw-value.md) | [androidJvm]<br>open val [rawValue](raw-value.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?<br>The raw value of the claim. |
| [value](value.md) | [androidJvm]<br>open val [value](value.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?<br>The value of the claim. |
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[DocumentClaim](index.md)/[rawValue](raw-value.md)

# rawValue

[androidJvm]\
open
val [rawValue](raw-value.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[DocumentClaim](index.md)/[value](value.md)

# value

[androidJvm]\
open
val [value](value.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[DocumentData](index.md)/[claims](claims.md)

# claims

[androidJvm]\
abstract
val [claims](claims.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)
&lt;[DocumentClaim](../-document-claim/index.md)&gt;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[DocumentData](index.md)/[format](format.md)

# format

[androidJvm]\
abstract val [format](format.md): [DocumentFormat](../-document-format/index.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[DocumentData](index.md)

# DocumentData

sealed interface [DocumentData](index.md)

Represents the claims of a document.

#### Inheritors

| |
|--------------------------------------------|
| [MsoMdocData](../-mso-mdoc-data/index.md) |
| [SdJwtVcData](../-sd-jwt-vc-data/index.md) |

## Properties

| Name | Summary |
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [claims](claims.md) | [androidJvm]<br>abstract val [claims](claims.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)&lt;[DocumentClaim](../-document-claim/index.md)&gt;<br>The list of claims. |
| [format](format.md) | [androidJvm]<br>abstract val [format](format.md): [DocumentFormat](../-document-format/index.md)<br>The format of the document. |
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocClaim](index.md)/[MsoMdocClaim](-mso-mdoc-claim.md)

# MsoMdocClaim

[androidJvm]\
constructor(nameSpace: [NameSpace](../../eu.europa.ec.eudi.wallet.document/-name-space/index.md),
identifier: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html),
value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?,
rawValue: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html))
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocClaim](index.md)/[identifier](identifier.md)

# identifier

[androidJvm]\
open override
val [identifier](identifier.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocClaim](index.md)

# MsoMdocClaim

[androidJvm]\
data class [MsoMdocClaim](index.md)(val
nameSpace: [NameSpace](../../eu.europa.ec.eudi.wallet.document/-name-space/index.md), val
identifier: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val
value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, val
rawValue: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)) : [DocumentClaim](../-document-claim/index.md)

Represents a claim of a document in the MsoMdoc format.

## Constructors

| | |
|------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MsoMdocClaim](-mso-mdoc-claim.md) | [androidJvm]<br>constructor(nameSpace: [NameSpace](../../eu.europa.ec.eudi.wallet.document/-name-space/index.md), identifier: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, rawValue: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)) |

## Properties

| Name | Summary |
|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [identifier](identifier.md) | [androidJvm]<br>open override val [identifier](identifier.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>The identifier of the claim. |
| [nameSpace](name-space.md) | [androidJvm]<br>val [nameSpace](name-space.md): [NameSpace](../../eu.europa.ec.eudi.wallet.document/-name-space/index.md)<br>The name-space of the claim. |
| [rawValue](raw-value.md) | [androidJvm]<br>open override val [rawValue](raw-value.md): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)<br>The raw value of the claim in bytes. |
| [value](value.md) | [androidJvm]<br>open override val [value](value.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?<br>The value of the claim. |
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocClaim](index.md)/[nameSpace](name-space.md)

# nameSpace

[androidJvm]\
val [nameSpace](name-space.md): [NameSpace](../../eu.europa.ec.eudi.wallet.document/-name-space/index.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocClaim](index.md)/[rawValue](raw-value.md)

# rawValue

[androidJvm]\
open override
val [rawValue](raw-value.md): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocClaim](index.md)/[value](value.md)

# value

[androidJvm]\
open override
val [value](value.md): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[MsoMdocData](-mso-mdoc-data.md)

# MsoMdocData

[androidJvm]\
constructor(format: [MsoMdocFormat](../-mso-mdoc-format/index.md), nameSpacedData: NameSpacedData)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[claims](claims.md)

# claims

[androidJvm]\
open override
val [claims](claims.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)
&lt;[MsoMdocClaim](../-mso-mdoc-claim/index.md)&gt;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[equals](equals.md)

# equals

[androidJvm]\
open operator override fun [equals](equals.md)(
other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[format](format.md)

# format

[androidJvm]\
open override val [format](format.md): [MsoMdocFormat](../-mso-mdoc-format/index.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[hashCode](hash-code.md)

# hashCode

[androidJvm]\
open override
fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)

# MsoMdocData

[androidJvm]\
data class [MsoMdocData](index.md)(val format: [MsoMdocFormat](../-mso-mdoc-format/index.md), val
nameSpacedData: NameSpacedData) : [DocumentData](../-document-data/index.md)

Represents the claims of a document in the MsoMdoc format.

## Constructors

| | |
|----------------------------------|--------------------------------------------------------------------------------------------------------------------|
| [MsoMdocData](-mso-mdoc-data.md) | [androidJvm]<br>constructor(format: [MsoMdocFormat](../-mso-mdoc-format/index.md), nameSpacedData: NameSpacedData) |

## Properties

| Name | Summary |
|-------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [claims](claims.md) | [androidJvm]<br>open override val [claims](claims.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)&lt;[MsoMdocClaim](../-mso-mdoc-claim/index.md)&gt;<br>The list of claims. |
| [format](format.md) | [androidJvm]<br>open override val [format](format.md): [MsoMdocFormat](../-mso-mdoc-format/index.md)<br>The MsoMdoc format containing the docType |
| [nameSpacedData](name-spaced-data.md) | [androidJvm]<br>val [nameSpacedData](name-spaced-data.md): NameSpacedData<br>The name-spaced data. |
| [nameSpacedDataDecoded](name-spaced-data-decoded.md) | [androidJvm]<br>val [nameSpacedDataDecoded](name-spaced-data-decoded.md): [NameSpacedValues](../../eu.europa.ec.eudi.wallet.document/-name-spaced-values/index.md)&lt;[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?&gt;<br>The name-spaced data decoded. |
| [nameSpacedDataInBytes](name-spaced-data-in-bytes.md) | [androidJvm]<br>val [nameSpacedDataInBytes](name-spaced-data-in-bytes.md): [NameSpacedValues](../../eu.europa.ec.eudi.wallet.document/-name-spaced-values/index.md)&lt;[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)&gt;<br>The name-spaced data in bytes. |
| [nameSpaces](name-spaces.md) | [androidJvm]<br>val [nameSpaces](name-spaces.md): [NameSpaces](../../eu.europa.ec.eudi.wallet.document/-name-spaces/index.md)<br>The name-spaces. |

## Functions

| Name | Summary |
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [equals](equals.md) | [androidJvm]<br>open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) |
| [hashCode](hash-code.md) | [androidJvm]<br>open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document](../index.md)/[IssuedDocument](index.md)/[nameSpacedDataDecoded](name-spaced-data-decoded.md)
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[nameSpacedDataDecoded](name-spaced-data-decoded.md)

# nameSpacedDataDecoded

[androidJvm]\
val [nameSpacedDataDecoded](name-spaced-data-decoded.md): [NameSpacedValues](../-name-spaced-values/index.md)
val [nameSpacedDataDecoded](name-spaced-data-decoded.md): [NameSpacedValues](../../eu.europa.ec.eudi.wallet.document/-name-spaced-values/index.md)
&lt;[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?&gt;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document](../index.md)/[IssuedDocument](index.md)/[nameSpacedDataInBytes](name-spaced-data-in-bytes.md)
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[nameSpacedDataInBytes](name-spaced-data-in-bytes.md)

# nameSpacedDataInBytes

[androidJvm]\
val [nameSpacedDataInBytes](name-spaced-data-in-bytes.md): [NameSpacedValues](../-name-spaced-values/index.md)
val [nameSpacedDataInBytes](name-spaced-data-in-bytes.md): [NameSpacedValues](../../eu.europa.ec.eudi.wallet.document/-name-spaced-values/index.md)
&lt;[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)&gt;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document](../index.md)/[IssuedDocument](index.md)/[nameSpacedData](name-spaced-data.md)
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[nameSpacedData](name-spaced-data.md)

# nameSpacedData

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[MsoMdocData](index.md)/[nameSpaces](name-spaces.md)

# nameSpaces

[androidJvm]\
val [nameSpaces](name-spaces.md): [NameSpaces](../../eu.europa.ec.eudi.wallet.document/-name-spaces/index.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[SdJwtVcClaim](index.md)/[SdJwtVcClaim](-sd-jwt-vc-claim.md)

# SdJwtVcClaim

[androidJvm]\
constructor(
identifier: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html),
value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?,
rawValue: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html),
selectivelyDisclosable: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//[document-manager](../../../index.md)/[eu.europa.ec.eudi.wallet.document.format](../index.md)/[SdJwtVcClaim](index.md)/[identifier](identifier.md)

# identifier

[androidJvm]\
open override
val [identifier](identifier.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Loading
Loading