diff --git a/README.md b/README.md index 6a419e63..c9836e0f 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ file. ```groovy dependencies { - implementation "eu.europa.ec.eudi:eudi-lib-android-wallet-core:0.9.4-SNAPSHOT" + implementation "eu.europa.ec.eudi:eudi-lib-android-wallet-core:0.9.5-SNAPSHOT" implementation "androidx.biometric:biometric-ktx:1.2.0-alpha05" } ``` @@ -201,6 +201,7 @@ val config = EudiWalletConfig.Builder(applicationContext) useDPoP(false) parUsage(ParUsage.IF_SUPPORTED) proofTypes(Config.ProofType.JWT, Config.ProofType.CWT) + debugLogging(true) } .build() diff --git a/changelog.md b/changelog.md index 3f26dcb5..8a5eaf77 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## [0.9.5-SNAPSHOT] + +__12 Jun 2024__ + +- Bump eudi-lib-jvm-openid4vci-kt to v0.3.1 +- Configurable debug logging for OpenId4VCI + ## [0.9.4-SNAPSHOT] __10 Jun 2024__ diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.document/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.document/index.md index f998c0b0..417fac3d 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.document/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.document/index.md @@ -4,6 +4,6 @@ ## Types -| Name | Summary | -|----------------------------------|--------------------------------------------------------------------------------------------------------------------| +| Name | Summary | +|---|---| | [Constants](-constants/index.md) | [androidJvm]
object [~~Constants~~](-constants/index.md)
Shared constant values for doc types and namespaces | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/-document-failed.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/-document-failed.md index 52063af2..ee00e35d 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/-document-failed.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/-document-failed.md @@ -3,4 +3,6 @@ # DocumentFailed [androidJvm]\ -constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) +constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/index.md index 46856831..1812ae87 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-failed/index.md @@ -3,20 +3,23 @@ # DocumentFailed [androidJvm]\ -data class [DocumentFailed](index.md)(val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](../index.md) +data class [DocumentFailed](index.md)(val +name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val +docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val +cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](../index.md) Document issuance failed. ## Constructors -| | | -|---|---| +| | | +|---------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DocumentFailed](-document-failed.md) | [androidJvm]
constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | ## Properties -| Name | Summary | -|---|---| -| [cause](cause.md) | [androidJvm]
val [cause](cause.md): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)
the error that caused the failure | -| [docType](doc-type.md) | [androidJvm]
val [docType](doc-type.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the document type | -| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the document | +| Name | Summary | +|------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [cause](cause.md) | [androidJvm]
val [cause](cause.md): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)
the error that caused the failure | +| [docType](doc-type.md) | [androidJvm]
val [docType](doc-type.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the document type | +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the document | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/-document-issued.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/-document-issued.md index 68a0ff2a..ee4fc94d 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/-document-issued.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/-document-issued.md @@ -3,4 +3,6 @@ # DocumentIssued [androidJvm]\ -constructor(documentId: DocumentId, name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) +constructor(documentId: DocumentId, +name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/index.md index 886b457b..b3e347ac 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-issued/index.md @@ -2,26 +2,28 @@ # DocumentIssued -data class [DocumentIssued](index.md)(val documentId: DocumentId, val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [IssueEvent](../index.md) +data class [DocumentIssued](index.md)(val documentId: DocumentId, val +name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val +docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [IssueEvent](../index.md) Document issued successfully. #### See also -| | | -|---|---| +| | | +|------------|---------------------| | DocumentId | for the document id | ## Constructors -| | | -|---|---| +| | | +|---------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DocumentIssued](-document-issued.md) | [androidJvm]
constructor(documentId: DocumentId, name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | ## Properties -| Name | Summary | -|---|---| -| [docType](doc-type.md) | [androidJvm]
val [docType](doc-type.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the document type | -| [documentId](document-id.md) | [androidJvm]
val [documentId](document-id.md): DocumentId
the id of the issued document | -| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the document | +| Name | Summary | +|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------| +| [docType](doc-type.md) | [androidJvm]
val [docType](doc-type.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the document type | +| [documentId](document-id.md) | [androidJvm]
val [documentId](document-id.md): DocumentId
the id of the issued document | +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the document | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/-document-requires-user-auth.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/-document-requires-user-auth.md index 1e1ee297..4b0b95de 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/-document-requires-user-auth.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/-document-requires-user-auth.md @@ -3,4 +3,6 @@ # DocumentRequiresUserAuth [androidJvm]\ -constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cryptoObject: [BiometricPrompt.CryptoObject](https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject.html)?) +constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +cryptoObject: [BiometricPrompt.CryptoObject](https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject.html)?) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/index.md index 486f7f7c..86abcfda 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-document-requires-user-auth/index.md @@ -3,27 +3,30 @@ # DocumentRequiresUserAuth [androidJvm]\ -abstract class [DocumentRequiresUserAuth](index.md)(val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val cryptoObject: [BiometricPrompt.CryptoObject](https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject.html)?) : [IssueEvent](../index.md) +abstract class [DocumentRequiresUserAuth](index.md)(val +name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val +docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val +cryptoObject: [BiometricPrompt.CryptoObject](https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject.html)?) : [IssueEvent](../index.md) The document issuance requires user authentication. ## Constructors -| | | -|---|---| +| | | +|-------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DocumentRequiresUserAuth](-document-requires-user-auth.md) | [androidJvm]
constructor(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), cryptoObject: [BiometricPrompt.CryptoObject](https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject.html)?) | ## Functions -| Name | Summary | -|---|---| +| Name | Summary | +|---------------------|----------------------------------------------------| | [cancel](cancel.md) | [androidJvm]
abstract fun [cancel](cancel.md)() | | [resume](resume.md) | [androidJvm]
abstract fun [resume](resume.md)() | ## Properties -| Name | Summary | -|---|---| +| Name | Summary | +|----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [cryptoObject](crypto-object.md) | [androidJvm]
val [cryptoObject](crypto-object.md): [BiometricPrompt.CryptoObject](https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject.html)?
the crypto object to use for authentication | -| [docType](doc-type.md) | [androidJvm]
val [docType](doc-type.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | -| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [docType](doc-type.md) | [androidJvm]
val [docType](doc-type.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-failure/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-failure/index.md index f9a0c19f..2ca8e222 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-failure/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-failure/index.md @@ -3,18 +3,19 @@ # Failure [androidJvm]\ -data class [Failure](index.md)(val cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](../index.md) +data class [Failure](index.md)(val +cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](../index.md) The issuance failed. ## Constructors -| | | -|---|---| +| | | +|------------------------|----------------------------------------------------------------------------------------------------------------------------| | [Failure](-failure.md) | [androidJvm]
constructor(cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | ## Properties -| Name | Summary | -|---|---| +| Name | Summary | +|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [cause](cause.md) | [androidJvm]
val [cause](cause.md): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)
the error that caused the failure | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/-finished.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/-finished.md index c583e781..3fb6f478 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/-finished.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/-finished.md @@ -3,4 +3,5 @@ # Finished [androidJvm]\ -constructor(issuedDocuments: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<DocumentId>) +constructor(issuedDocuments: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html) +<DocumentId>) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/index.md index 40d549f8..bd41b712 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/index.md @@ -2,24 +2,26 @@ # Finished -data class [Finished](index.md)(val issuedDocuments: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<DocumentId>) : [IssueEvent](../index.md) +data class [Finished](index.md)(val +issuedDocuments: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html) +<DocumentId>) : [IssueEvent](../index.md) The issuance has finished. #### See also -| | | -|---|---| +| | | +|------------|---------------------| | DocumentId | for the document id | ## Constructors -| | | -|---|---| +| | | +|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------| | [Finished](-finished.md) | [androidJvm]
constructor(issuedDocuments: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<DocumentId>) | ## Properties -| Name | Summary | -|---|---| +| Name | Summary | +|----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [issuedDocuments](issued-documents.md) | [androidJvm]
val [issuedDocuments](issued-documents.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<DocumentId>
the ids of the issued documents | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/issued-documents.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/issued-documents.md index 9c0ac8fb..a39c0bce 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/issued-documents.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-finished/issued-documents.md @@ -3,4 +3,5 @@ # issuedDocuments [androidJvm]\ -val [issuedDocuments](issued-documents.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<DocumentId> +val [issuedDocuments](issued-documents.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html) +<DocumentId> diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-started/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-started/index.md index 738304ec..58bb1554 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-started/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/-started/index.md @@ -3,18 +3,19 @@ # Started [androidJvm]\ -data class [Started](index.md)(val total: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [IssueEvent](../index.md) +data class [Started](index.md)(val +total: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [IssueEvent](../index.md) The issuance was started. ## Constructors -| | | -|---|---| +| | | +|------------------------|----------------------------------------------------------------------------------------------------------------| | [Started](-started.md) | [androidJvm]
constructor(total: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | ## Properties -| Name | Summary | -|---|---| +| Name | Summary | +|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------| | [total](total.md) | [androidJvm]
val [total](total.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
the total number of documents to issue | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/index.md index 39bfb458..1ecd4dca 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-issue-event/index.md @@ -8,23 +8,23 @@ Events related to document issuance. #### Inheritors -| | -|---| -| [Started](-started/index.md) | -| [Finished](-finished/index.md) | -| [Failure](-failure/index.md) | +| | +|-------------------------------------------------------------------| +| [Started](-started/index.md) | +| [Finished](-finished/index.md) | +| [Failure](-failure/index.md) | | [DocumentRequiresUserAuth](-document-requires-user-auth/index.md) | -| [DocumentIssued](-document-issued/index.md) | -| [DocumentFailed](-document-failed/index.md) | +| [DocumentIssued](-document-issued/index.md) | +| [DocumentFailed](-document-failed/index.md) | ## Types -| Name | Summary | -|---|---| -| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | -| [DocumentFailed](-document-failed/index.md) | [androidJvm]
data class [DocumentFailed](-document-failed/index.md)(val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](index.md)
Document issuance failed. | -| [DocumentIssued](-document-issued/index.md) | [androidJvm]
data class [DocumentIssued](-document-issued/index.md)(val documentId: DocumentId, val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [IssueEvent](index.md)
Document issued successfully. | +| Name | Summary | +|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | +| [DocumentFailed](-document-failed/index.md) | [androidJvm]
data class [DocumentFailed](-document-failed/index.md)(val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](index.md)
Document issuance failed. | +| [DocumentIssued](-document-issued/index.md) | [androidJvm]
data class [DocumentIssued](-document-issued/index.md)(val documentId: DocumentId, val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : [IssueEvent](index.md)
Document issued successfully. | | [DocumentRequiresUserAuth](-document-requires-user-auth/index.md) | [androidJvm]
abstract class [DocumentRequiresUserAuth](-document-requires-user-auth/index.md)(val name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val cryptoObject: [BiometricPrompt.CryptoObject](https://developer.android.com/reference/kotlin/androidx/biometric/BiometricPrompt.CryptoObject.html)?) : [IssueEvent](index.md)
The document issuance requires user authentication. | -| [Failure](-failure/index.md) | [androidJvm]
data class [Failure](-failure/index.md)(val cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](index.md)
The issuance failed. | -| [Finished](-finished/index.md) | [androidJvm]
data class [Finished](-finished/index.md)(val issuedDocuments: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<DocumentId>) : [IssueEvent](index.md)
The issuance has finished. | -| [Started](-started/index.md) | [androidJvm]
data class [Started](-started/index.md)(val total: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [IssueEvent](index.md)
The issuance was started. | +| [Failure](-failure/index.md) | [androidJvm]
data class [Failure](-failure/index.md)(val cause: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [IssueEvent](index.md)
The issuance failed. | +| [Finished](-finished/index.md) | [androidJvm]
data class [Finished](-finished/index.md)(val issuedDocuments: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<DocumentId>) : [IssueEvent](index.md)
The issuance has finished. | +| [Started](-started/index.md) | [androidJvm]
data class [Started](-started/index.md)(val total: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) : [IssueEvent](index.md)
The issuance was started. | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-failure/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-failure/index.md index 6a2bf9ae..fc0cbf28 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-failure/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-failure/index.md @@ -3,18 +3,19 @@ # Failure [androidJvm]\ -data class [Failure](index.md)(val error: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [OfferResult](../index.md) +data class [Failure](index.md)(val +error: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [OfferResult](../index.md) The offer failed. ## Constructors -| | | -|---|---| +| | | +|------------------------|----------------------------------------------------------------------------------------------------------------------------| | [Failure](-failure.md) | [androidJvm]
constructor(error: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) | ## Properties -| Name | Summary | -|---|---| +| Name | Summary | +|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [error](error.md) | [androidJvm]
val [error](error.md): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)
the error that caused the failure | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-success/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-success/index.md index a277c72f..4dfb59ed 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-success/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/-success/index.md @@ -9,12 +9,12 @@ The offer was successful. ## Constructors -| | | -|---|---| +| | | +|------------------------|--------------------------------------------------------------------| | [Success](-success.md) | [androidJvm]
constructor(offer: [Offer](../../-offer/index.md)) | ## Properties -| Name | Summary | -|---|---| +| Name | Summary | +|-------------------|------------------------------------------------------------------------------------| | [offer](offer.md) | [androidJvm]
val [offer](offer.md): [Offer](../../-offer/index.md)
the offer | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/index.md index 918442c2..cb2c068a 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer-result/index.md @@ -8,14 +8,14 @@ The result of an offer operation. #### Inheritors -| | -|---| +| | +|------------------------------| | [Success](-success/index.md) | | [Failure](-failure/index.md) | ## Types -| Name | Summary | -|---|---| +| Name | Summary | +|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Failure](-failure/index.md) | [androidJvm]
data class [Failure](-failure/index.md)(val error: [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)) : [OfferResult](index.md)
The offer failed. | -| [Success](-success/index.md) | [androidJvm]
data class [Success](-success/index.md)(val offer: [Offer](../-offer/index.md)) : [OfferResult](index.md)
The offer was successful. | +| [Success](-success/index.md) | [androidJvm]
data class [Success](-success/index.md)(val offer: [Offer](../-offer/index.md)) : [OfferResult](index.md)
The offer was successful. | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/as-pair.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/as-pair.md index 5a6331dd..7a9e268c 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/as-pair.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/as-pair.md @@ -3,6 +3,8 @@ # asPair [androidJvm]\ -fun [asPair](as-pair.md)(): [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> +fun [asPair](as-pair.md)(): [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html) +<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) +> Converts this item to a pair of name and document type. diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/index.md index 57b2e42c..f1518195 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/index.md @@ -9,13 +9,14 @@ An item to be issued. ## Functions -| Name | Summary | -|---|---| -| [asPair](as-pair.md) | [androidJvm]
fun [asPair](as-pair.md)(): [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
Converts this item to a pair of name and document type. | +| Name | Summary | +|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [asPair](as-pair.md) | [androidJvm]
fun [asPair](as-pair.md)(): [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)>
Converts this item to a pair of name and document type. | +| [toString](to-string.md) | [androidJvm]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | ## Properties -| Name | Summary | -|---|---| +| Name | Summary | +|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------| | [docType](doc-type.md) | [androidJvm]
val [docType](doc-type.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the document type of the item | -| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the item | +| [name](name.md) | [androidJvm]
val [name](name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the item | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/to-string.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/to-string.md new file mode 100644 index 00000000..340daca1 --- /dev/null +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/to-string.md @@ -0,0 +1,7 @@ +//[wallet-core](../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../index.md)/[Offer](../index.md)/[OfferedDocument](index.md)/[toString](to-string.md) + +# toString + +[androidJvm]\ +open override +fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/index.md index 2d54156e..9a47285c 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/index.md @@ -9,13 +9,13 @@ An offer of credentials to be issued. ## Types -| Name | Summary | -|---|---| +| Name | Summary | +|-----------------------------------------------|---------------------------------------------------------------------------------------------------| | [OfferedDocument](-offered-document/index.md) | [androidJvm]
data class [OfferedDocument](-offered-document/index.md)
An item to be issued. | ## Properties -| Name | Summary | -|---|---| -| [issuerName](issuer-name.md) | [androidJvm]
abstract val [issuerName](issuer-name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the issuer | +| Name | Summary | +|------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [issuerName](issuer-name.md) | [androidJvm]
abstract val [issuerName](issuer-name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the name of the issuer | | [offeredDocuments](offered-documents.md) | [androidJvm]
abstract val [offeredDocuments](offered-documents.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Offer.OfferedDocument](-offered-document/index.md)>
the items to be issued | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/issuer-name.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/issuer-name.md index 4619e795..46ac2e87 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/issuer-name.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/issuer-name.md @@ -3,4 +3,5 @@ # issuerName [androidJvm]\ -abstract val [issuerName](issuer-name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) +abstract +val [issuerName](issuer-name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/offered-documents.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/offered-documents.md index 290b15b5..d106b1c0 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/offered-documents.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/offered-documents.md @@ -3,4 +3,6 @@ # offeredDocuments [androidJvm]\ -abstract val [offeredDocuments](offered-documents.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Offer.OfferedDocument](-offered-document/index.md)> +abstract +val [offeredDocuments](offered-documents.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html) +<[Offer.OfferedDocument](-offered-document/index.md)> diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/-builder.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/-builder.md index 1572d639..288fb8d5 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/-builder.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/-builder.md @@ -9,6 +9,6 @@ constructor(context: [Context](https://developer.android.com/reference/kotlin/an androidJvm -| | | -|---|---| +| | | +|---------|-------------| | context | the context | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/build.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/build.md index 87204081..ab0af3c3 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/build.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/build.md @@ -9,6 +9,6 @@ Build the [OpenId4VciManager](../index.md) #### Throws -| | | -|---|---| +| | | +|------------------------------------------------------------------------------------------------------------------|-----------------------------------------| | [IllegalStateException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html) | if config or documentManager is not set | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/index.md index 9fabbcbf..0233d7a2 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-builder/index.md @@ -2,7 +2,8 @@ # Builder -class [Builder](index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)) +class [Builder](index.md)( +context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)) Builder to create an instance of [OpenId4VciManager](../index.md) @@ -10,27 +11,27 @@ Builder to create an instance of [OpenId4VciManager](../index.md) androidJvm -| | | -|---|---| +| | | +|---------|-------------| | context | the context | ## Constructors -| | | -|---|---| +| | | +|------------------------|------------------------------------------------------------------------------------------------------------------------------| | [Builder](-builder.md) | [androidJvm]
constructor(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html)) | ## Functions -| Name | Summary | -|---|---| -| [build](build.md) | [androidJvm]
fun [build](build.md)(): [OpenId4VciManager](../index.md)
Build the [OpenId4VciManager](../index.md) | -| [config](config.md) | [androidJvm]
fun [config](config.md)(config: [OpenId4VciManager.Config](../-config/index.md)): [OpenId4VciManager.Builder](index.md)
Set the [Config](../-config/index.md) to use | -| [documentManager](document-manager.md) | [androidJvm]
fun [documentManager](document-manager.md)(documentManager: DocumentManager): [OpenId4VciManager.Builder](index.md)
Set the DocumentManager to use | +| Name | Summary | +|----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [build](build.md) | [androidJvm]
fun [build](build.md)(): [OpenId4VciManager](../index.md)
Build the [OpenId4VciManager](../index.md) | +| [config](config.md) | [androidJvm]
fun [config](config.md)(config: [OpenId4VciManager.Config](../-config/index.md)): [OpenId4VciManager.Builder](index.md)
Set the [Config](../-config/index.md) to use | +| [documentManager](document-manager.md) | [androidJvm]
fun [documentManager](document-manager.md)(documentManager: DocumentManager): [OpenId4VciManager.Builder](index.md)
Set the DocumentManager to use | ## Properties -| Name | Summary | -|---|---| -| [config](config.md) | [androidJvm]
var [config](config.md): [OpenId4VciManager.Config](../-config/index.md)?
the [Config](../-config/index.md) to use | -| [documentManager](document-manager.md) | [androidJvm]
var [documentManager](document-manager.md): DocumentManager?
the DocumentManager to use | +| Name | Summary | +|----------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| +| [config](config.md) | [androidJvm]
var [config](config.md): [OpenId4VciManager.Config](../-config/index.md)?
the [Config](../-config/index.md) to use | +| [documentManager](document-manager.md) | [androidJvm]
var [documentManager](document-manager.md): DocumentManager?
the DocumentManager to use | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/index.md index 5b6c1bc1..9916b7b6 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/index.md @@ -7,6 +7,6 @@ object [Companion](index.md) ## Functions -| Name | Summary | -|---|---| +| Name | Summary | +|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [invoke](invoke.md) | [androidJvm]
operator fun [invoke](invoke.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), block: [OpenId4VciManager.Builder](../-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [OpenId4VciManager](../index.md)
Create an instance of [OpenId4VciManager](../index.md) | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/invoke.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/invoke.md index 04c9714e..116c2dd4 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/invoke.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-companion/invoke.md @@ -3,6 +3,9 @@ # invoke [androidJvm]\ -operator fun [invoke](invoke.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), block: [OpenId4VciManager.Builder](../-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [OpenId4VciManager](../index.md) +operator fun [invoke](invoke.md)( +context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), +block: [OpenId4VciManager.Builder](../-builder/index.md).() +-> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [OpenId4VciManager](../index.md) Create an instance of [OpenId4VciManager](../index.md) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/auth-flow-redirection-u-r-i.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/auth-flow-redirection-u-r-i.md index d3862ced..faaf0c06 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/auth-flow-redirection-u-r-i.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/auth-flow-redirection-u-r-i.md @@ -3,7 +3,8 @@ # authFlowRedirectionURI [androidJvm]\ -fun [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md)(authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md)( +authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) Set the redirection URI for the authorization flow diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/build.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/build.md index cf9c654e..79fd5c0f 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/build.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/build.md @@ -9,6 +9,6 @@ Build the [Config](../index.md) #### Throws -| | | -|---|---| +| | | +|------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------| | [IllegalStateException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html) | if issuerUrl, clientId or authFlowRedirectionURI is not set | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/client-id.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/client-id.md index ea5503dd..f86c1cb0 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/client-id.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/client-id.md @@ -3,7 +3,8 @@ # clientId [androidJvm]\ -fun [clientId](client-id.md)(clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [clientId](client-id.md)( +clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) Set the client id diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/debug-logging.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/debug-logging.md new file mode 100644 index 00000000..47e6b144 --- /dev/null +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/debug-logging.md @@ -0,0 +1,12 @@ +//[wallet-core](../../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../../index.md)/[OpenId4VciManager](../../index.md)/[Config](../index.md)/[Builder](index.md)/[debugLogging](debug-logging.md) + +# debugLogging + +[androidJvm]\ +fun [debugLogging](debug-logging.md)( +debugLogging: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [OpenId4VciManager.Config.Builder](index.md) + +Set the debug logging flag + +[androidJvm]\ +var [debugLogging](debug-logging.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/index.md index 63eb44a9..b0021b7a 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/index.md @@ -9,8 +9,8 @@ Builder to create an instance of [Config](../index.md) ## Constructors -| | | -|---|---| +| | | +|------------------------|-------------------------------| | [Builder](-builder.md) | [androidJvm]
constructor() | ## Functions @@ -20,6 +20,7 @@ Builder to create an instance of [Config](../index.md) | [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md) | [androidJvm]
fun [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md)(authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md)
Set the redirection URI for the authorization flow | | [build](build.md) | [androidJvm]
fun [build](build.md)(): [OpenId4VciManager.Config](../index.md)
Build the [Config](../index.md) | | [clientId](client-id.md) | [androidJvm]
fun [clientId](client-id.md)(clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md)
Set the client id | +| [debugLogging](debug-logging.md) | [androidJvm]
fun [debugLogging](debug-logging.md)(debugLogging: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [OpenId4VciManager.Config.Builder](index.md)
Set the debug logging flag | | [issuerUrl](issuer-url.md) | [androidJvm]
fun [issuerUrl](issuer-url.md)(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md)
Set the issuer url | | [parUsage](par-usage.md) | [androidJvm]
fun [parUsage](par-usage.md)(parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [OpenId4VciManager.Config.Builder](index.md)
Set the PAR usage | | [proofTypes](proof-types.md) | [androidJvm]
fun [proofTypes](proof-types.md)(vararg proofType: [OpenId4VciManager.Config.ProofType](../-proof-type/index.md)): [OpenId4VciManager.Config.Builder](index.md)
Set the proof types. The supported proof types are [ProofType](../-proof-type/index.md). The order of the proof types is the order in which they will be used. | @@ -35,6 +36,7 @@ Builder to create an instance of [Config](../index.md) |-----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md) | [androidJvm]
var [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
the redirection URI for the authorization flow | | [clientId](client-id.md) | [androidJvm]
var [clientId](client-id.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
the client id | +| [debugLogging](debug-logging.md) | [androidJvm]
var [debugLogging](debug-logging.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
flag to enable debug logging. Default is false | | [issuerUrl](issuer-url.md) | [androidJvm]
var [issuerUrl](issuer-url.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?
the issuer url | | [parUsage](par-usage.md) | [androidJvm]
var [parUsage](par-usage.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
if PAR should be used | | [useDPoPIfSupported](use-d-po-p-if-supported.md) | [androidJvm]
var [useDPoPIfSupported](use-d-po-p-if-supported.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
flag that if set will enable the use of DPoP JWT | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/issuer-url.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/issuer-url.md index fd7e2ae5..5f6a5c4e 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/issuer-url.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/issuer-url.md @@ -3,7 +3,8 @@ # issuerUrl [androidJvm]\ -fun [issuerUrl](issuer-url.md)(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [issuerUrl](issuer-url.md)( +issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) Set the issuer url diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-d-po-p.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-d-po-p.md index bfcf8548..10648b06 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-d-po-p.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-d-po-p.md @@ -3,7 +3,8 @@ # useDPoP [androidJvm]\ -fun [useDPoP](use-d-po-p.md)(useDPoP: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [useDPoP](use-d-po-p.md)( +useDPoP: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [OpenId4VciManager.Config.Builder](index.md) Set the flag that if set will enable the use of DPoP JWT diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-strong-box-if-supported.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-strong-box-if-supported.md index 7cc5b46b..7c5c29fa 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-strong-box-if-supported.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/use-strong-box-if-supported.md @@ -3,7 +3,8 @@ # useStrongBoxIfSupported [androidJvm]\ -fun [useStrongBoxIfSupported](use-strong-box-if-supported.md)(useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [useStrongBoxIfSupported](use-strong-box-if-supported.md)( +useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)): [OpenId4VciManager.Config.Builder](index.md) Set the flag that if set will enable the use of StrongBox for document keys if supported diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-auth-flow-redirection-u-r-i.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-auth-flow-redirection-u-r-i.md index 27c235ee..7bc1ead9 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-auth-flow-redirection-u-r-i.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-auth-flow-redirection-u-r-i.md @@ -3,4 +3,5 @@ # withAuthFlowRedirectionURI [androidJvm]\ -fun [withAuthFlowRedirectionURI](with-auth-flow-redirection-u-r-i.md)(authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [withAuthFlowRedirectionURI](with-auth-flow-redirection-u-r-i.md)( +authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-client-id.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-client-id.md index bb04d657..e03517a0 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-client-id.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-client-id.md @@ -3,4 +3,5 @@ # withClientId [androidJvm]\ -fun [withClientId](with-client-id.md)(clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [withClientId](with-client-id.md)( +clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-issuer-url.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-issuer-url.md index 7b518998..a3598da3 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-issuer-url.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/with-issuer-url.md @@ -3,4 +3,5 @@ # withIssuerUrl [androidJvm]\ -fun [withIssuerUrl](with-issuer-url.md)(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) +fun [withIssuerUrl](with-issuer-url.md)( +issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/index.md index 0d64b345..9585744f 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/index.md @@ -7,6 +7,6 @@ object [Companion](index.md) ## Functions -| Name | Summary | -|---|---| +| Name | Summary | +|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [invoke](invoke.md) | [androidJvm]
operator fun [invoke](invoke.md)(block: [OpenId4VciManager.Config.Builder](../-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [OpenId4VciManager.Config](../index.md)
Create an instance of [Config](../index.md) | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/invoke.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/invoke.md index 819cf96f..412a12f1 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/invoke.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-companion/invoke.md @@ -3,6 +3,7 @@ # invoke [androidJvm]\ -operator fun [invoke](invoke.md)(block: [OpenId4VciManager.Config.Builder](../-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [OpenId4VciManager.Config](../index.md) +operator fun [invoke](invoke.md)(block: [OpenId4VciManager.Config.Builder](../-builder/index.md).() +-> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [OpenId4VciManager.Config](../index.md) Create an instance of [Config](../index.md) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-config.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-config.md index d887bb92..477bdb92 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-config.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-config.md @@ -10,4 +10,5 @@ useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/ useDPoPIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), proofTypes: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html) -<[OpenId4VciManager.Config.ProofType](-proof-type/index.md)>) +<[OpenId4VciManager.Config.ProofType](-proof-type/index.md)>, +debugLogging: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/debug-logging.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/debug-logging.md new file mode 100644 index 00000000..71f3158f --- /dev/null +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/debug-logging.md @@ -0,0 +1,6 @@ +//[wallet-core](../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../index.md)/[OpenId4VciManager](../index.md)/[Config](index.md)/[debugLogging](debug-logging.md) + +# debugLogging + +[androidJvm]\ +val [debugLogging](debug-logging.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/index.md index 7288d5c9..1f529f97 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/index.md @@ -11,15 +11,16 @@ useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/ useDPoPIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), val proofTypes: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html) -<[OpenId4VciManager.Config.ProofType](-proof-type/index.md)>) +<[OpenId4VciManager.Config.ProofType](-proof-type/index.md)>, val +debugLogging: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) Configuration for the OpenId4Vci issuer ## Constructors -| | | -|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [Config](-config.md) | [androidJvm]
constructor(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), useDPoPIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), proofTypes: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[OpenId4VciManager.Config.ProofType](-proof-type/index.md)>) | +| | | +|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [Config](-config.md) | [androidJvm]
constructor(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), useDPoPIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), proofTypes: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[OpenId4VciManager.Config.ProofType](-proof-type/index.md)>, debugLogging: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) | ## Types @@ -36,6 +37,7 @@ Configuration for the OpenId4Vci issuer |-----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md) | [androidJvm]
val [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the redirection URI for the authorization flow | | [clientId](client-id.md) | [androidJvm]
val [clientId](client-id.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the client id | +| [debugLogging](debug-logging.md) | [androidJvm]
val [debugLogging](debug-logging.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
flag to enable debug logging | | [issuerUrl](issuer-url.md) | [androidJvm]
val [issuerUrl](issuer-url.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
the issuer url | | [parUsage](par-usage.md) | [androidJvm]
val [parUsage](par-usage.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
if PAR should be used | | [proofTypes](proof-types.md) | [androidJvm]
val [proofTypes](proof-types.md): [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[OpenId4VciManager.Config.ProofType](-proof-type/index.md)>
the proof types to use | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-issue-event/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-issue-event/index.md index e49dae0b..74f16e53 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-issue-event/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-issue-event/index.md @@ -3,13 +3,14 @@ # OnIssueEvent [androidJvm]\ -fun interface [OnIssueEvent](index.md) : [OpenId4VciManager.OnResult](../-on-result/index.md)<[IssueEvent](../../-issue-event/index.md)> +fun interface [OnIssueEvent](index.md) : [OpenId4VciManager.OnResult](../-on-result/index.md) +<[IssueEvent](../../-issue-event/index.md)> Callback to be called when a document is issued ## Functions -| Name | Summary | -|---|---| -| [invoke](index.md#2030868640%2FFunctions%2F1615067946) | [androidJvm]
open operator fun [invoke](index.md#2030868640%2FFunctions%2F1615067946)(result: [IssueEvent](../../-issue-event/index.md)) | -| [onResult](index.md#257080636%2FFunctions%2F1615067946) | [androidJvm]
abstract fun [onResult](index.md#257080636%2FFunctions%2F1615067946)(result: [IssueEvent](../../-issue-event/index.md)) | +| Name | Summary | +|---------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------| +| [invoke](index.md#2030868640%2FFunctions%2F1615067946) | [androidJvm]
open operator fun [invoke](index.md#2030868640%2FFunctions%2F1615067946)(result: [IssueEvent](../../-issue-event/index.md)) | +| [onResult](index.md#257080636%2FFunctions%2F1615067946) | [androidJvm]
abstract fun [onResult](index.md#257080636%2FFunctions%2F1615067946)(result: [IssueEvent](../../-issue-event/index.md)) | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-resolved-offer/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-resolved-offer/index.md index d5c41d58..3d66cba6 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-resolved-offer/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-resolved-offer/index.md @@ -3,13 +3,14 @@ # OnResolvedOffer [androidJvm]\ -fun interface [OnResolvedOffer](index.md) : [OpenId4VciManager.OnResult](../-on-result/index.md)<[OfferResult](../../-offer-result/index.md)> +fun interface [OnResolvedOffer](index.md) : [OpenId4VciManager.OnResult](../-on-result/index.md) +<[OfferResult](../../-offer-result/index.md)> Callback to be called when an offer is resolved ## Functions -| Name | Summary | -|---|---| -| [invoke](index.md#368840040%2FFunctions%2F1615067946) | [androidJvm]
open operator fun [invoke](index.md#368840040%2FFunctions%2F1615067946)(result: [OfferResult](../../-offer-result/index.md)) | -| [onResult](index.md#1215986764%2FFunctions%2F1615067946) | [androidJvm]
abstract fun [onResult](index.md#1215986764%2FFunctions%2F1615067946)(result: [OfferResult](../../-offer-result/index.md)) | +| Name | Summary | +|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------| +| [invoke](index.md#368840040%2FFunctions%2F1615067946) | [androidJvm]
open operator fun [invoke](index.md#368840040%2FFunctions%2F1615067946)(result: [OfferResult](../../-offer-result/index.md)) | +| [onResult](index.md#1215986764%2FFunctions%2F1615067946) | [androidJvm]
abstract fun [onResult](index.md#1215986764%2FFunctions%2F1615067946)(result: [OfferResult](../../-offer-result/index.md)) | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-result/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-result/index.md index c6012e43..76793a14 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-result/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-on-result/index.md @@ -6,14 +6,14 @@ fun interface [OnResult](index.md)<[T](index.md)> #### Inheritors -| | -|---| -| [OnIssueEvent](../-on-issue-event/index.md) | +| | +|---------------------------------------------------| +| [OnIssueEvent](../-on-issue-event/index.md) | | [OnResolvedOffer](../-on-resolved-offer/index.md) | ## Functions -| Name | Summary | -|---|---| -| [invoke](invoke.md) | [androidJvm]
open operator fun [invoke](invoke.md)(result: [T](index.md)) | +| Name | Summary | +|--------------------------|------------------------------------------------------------------------------| +| [invoke](invoke.md) | [androidJvm]
open operator fun [invoke](invoke.md)(result: [T](index.md)) | | [onResult](on-result.md) | [androidJvm]
abstract fun [onResult](on-result.md)(result: [T](index.md)) | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/index.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/index.md index 86f65b6c..23f74038 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/index.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/index.md @@ -4,31 +4,32 @@ interface [OpenId4VciManager](index.md) -OpenId4VciManager is the main entry point to issue documents using the OpenId4Vci protocol It provides methods to issue documents using a document type or an offer, and to resolve an offer +OpenId4VciManager is the main entry point to issue documents using the OpenId4Vci protocol It provides methods to issue +documents using a document type or an offer, and to resolve an offer #### See also -| | | -|---|---| +| | | +|----------------------------------------------|-------------------------------| | [OpenId4VciManager.Config](-config/index.md) | for the configuration options | ## Types -| Name | Summary | -|------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [Builder](-builder/index.md) | [androidJvm]
class [Builder](-builder/index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html))
Builder to create an instance of [OpenId4VciManager](index.md) | -| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | -| [Config](-config/index.md) | [androidJvm]
data class [Config](-config/index.md)(val issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val useDPoPIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), val proofTypes: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[OpenId4VciManager.Config.ProofType](-config/-proof-type/index.md)>)
Configuration for the OpenId4Vci issuer | -| [OnIssueEvent](-on-issue-event/index.md) | [androidJvm]
fun interface [OnIssueEvent](-on-issue-event/index.md) : [OpenId4VciManager.OnResult](-on-result/index.md)<[IssueEvent](../-issue-event/index.md)>
Callback to be called when a document is issued | -| [OnResolvedOffer](-on-resolved-offer/index.md) | [androidJvm]
fun interface [OnResolvedOffer](-on-resolved-offer/index.md) : [OpenId4VciManager.OnResult](-on-result/index.md)<[OfferResult](../-offer-result/index.md)>
Callback to be called when an offer is resolved | -| [OnResult](-on-result/index.md) | [androidJvm]
fun interface [OnResult](-on-result/index.md)<[T](-on-result/index.md)> | +| Name | Summary | +|------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [Builder](-builder/index.md) | [androidJvm]
class [Builder](-builder/index.md)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html))
Builder to create an instance of [OpenId4VciManager](index.md) | +| [Companion](-companion/index.md) | [androidJvm]
object [Companion](-companion/index.md) | +| [Config](-config/index.md) | [androidJvm]
data class [Config](-config/index.md)(val issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val authFlowRedirectionURI: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), val useStrongBoxIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val useDPoPIfSupported: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html), val parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), val proofTypes: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[OpenId4VciManager.Config.ProofType](-config/-proof-type/index.md)>, val debugLogging: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))
Configuration for the OpenId4Vci issuer | +| [OnIssueEvent](-on-issue-event/index.md) | [androidJvm]
fun interface [OnIssueEvent](-on-issue-event/index.md) : [OpenId4VciManager.OnResult](-on-result/index.md)<[IssueEvent](../-issue-event/index.md)>
Callback to be called when a document is issued | +| [OnResolvedOffer](-on-resolved-offer/index.md) | [androidJvm]
fun interface [OnResolvedOffer](-on-resolved-offer/index.md) : [OpenId4VciManager.OnResult](-on-result/index.md)<[OfferResult](../-offer-result/index.md)>
Callback to be called when an offer is resolved | +| [OnResult](-on-result/index.md) | [androidJvm]
fun interface [OnResult](-on-result/index.md)<[T](-on-result/index.md)> | ## Functions -| Name | Summary | -|---|---| -| [issueDocumentByDocType](issue-document-by-doc-type.md) | [androidJvm]
abstract fun [issueDocumentByDocType](issue-document-by-doc-type.md)(docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md))
Issue a document using a document type | -| [issueDocumentByOffer](issue-document-by-offer.md) | [androidJvm]
abstract fun [issueDocumentByOffer](issue-document-by-offer.md)(offer: [Offer](../-offer/index.md), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md))
Issue a document using an offer | -| [issueDocumentByOfferUri](issue-document-by-offer-uri.md) | [androidJvm]
abstract fun [issueDocumentByOfferUri](issue-document-by-offer-uri.md)(offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md))
Issue a document using an offer URI | -| [resolveDocumentOffer](resolve-document-offer.md) | [androidJvm]
abstract fun [resolveDocumentOffer](resolve-document-offer.md)(offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onResolvedOffer: [OpenId4VciManager.OnResolvedOffer](-on-resolved-offer/index.md))
Resolve an offer using OpenId4Vci protocol | -| [resumeWithAuthorization](resume-with-authorization.md) | [androidJvm]
abstract fun [resumeWithAuthorization](resume-with-authorization.md)(intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html))
abstract fun [resumeWithAuthorization](resume-with-authorization.md)(uri: [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html))
abstract fun [resumeWithAuthorization](resume-with-authorization.md)(uri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
Resume the authorization flow after the user has been redirected back to the app | +| Name | Summary | +|-----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [issueDocumentByDocType](issue-document-by-doc-type.md) | [androidJvm]
abstract fun [issueDocumentByDocType](issue-document-by-doc-type.md)(docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md))
Issue a document using a document type | +| [issueDocumentByOffer](issue-document-by-offer.md) | [androidJvm]
abstract fun [issueDocumentByOffer](issue-document-by-offer.md)(offer: [Offer](../-offer/index.md), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md))
Issue a document using an offer | +| [issueDocumentByOfferUri](issue-document-by-offer-uri.md) | [androidJvm]
abstract fun [issueDocumentByOfferUri](issue-document-by-offer-uri.md)(offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md))
Issue a document using an offer URI | +| [resolveDocumentOffer](resolve-document-offer.md) | [androidJvm]
abstract fun [resolveDocumentOffer](resolve-document-offer.md)(offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onResolvedOffer: [OpenId4VciManager.OnResolvedOffer](-on-resolved-offer/index.md))
Resolve an offer using OpenId4Vci protocol | +| [resumeWithAuthorization](resume-with-authorization.md) | [androidJvm]
abstract fun [resumeWithAuthorization](resume-with-authorization.md)(intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html))
abstract fun [resumeWithAuthorization](resume-with-authorization.md)(uri: [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html))
abstract fun [resumeWithAuthorization](resume-with-authorization.md)(uri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html))
Resume the authorization flow after the user has been redirected back to the app | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-doc-type.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-doc-type.md index 27c34dda..993b2850 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-doc-type.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-doc-type.md @@ -3,7 +3,10 @@ # issueDocumentByDocType [androidJvm]\ -abstract fun [issueDocumentByDocType](issue-document-by-doc-type.md)(docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md)) +abstract fun [issueDocumentByDocType](issue-document-by-doc-type.md)( +docType: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, +onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md)) Issue a document using a document type @@ -11,15 +14,15 @@ Issue a document using a document type androidJvm -| | | -|---|---| -| docType | the document type to issue | -| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | -| onIssueEvent | the callback to be called when the document is issued | +| | | +|--------------|-------------------------------------------------------------------------------------------------------------------------------| +| docType | the document type to issue | +| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | +| onIssueEvent | the callback to be called when the document is issued | #### See also -| | | -|---|---| -| [IssueEvent](../-issue-event/index.md) | on how to handle the result | +| | | +|----------------------------------------------------------------------------------------------|--------------------------------------| +| [IssueEvent](../-issue-event/index.md) | on how to handle the result | | [IssueEvent.DocumentRequiresUserAuth](../-issue-event/-document-requires-user-auth/index.md) | on how to handle user authentication | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer-uri.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer-uri.md index 3c079371..e0ef246f 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer-uri.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer-uri.md @@ -3,7 +3,10 @@ # issueDocumentByOfferUri [androidJvm]\ -abstract fun [issueDocumentByOfferUri](issue-document-by-offer-uri.md)(offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md)) +abstract fun [issueDocumentByOfferUri](issue-document-by-offer-uri.md)( +offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, +onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md)) Issue a document using an offer URI @@ -11,15 +14,15 @@ Issue a document using an offer URI androidJvm -| | | -|---|---| -| offerUri | the offer URI | -| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | +| | | +|--------------|-----------------------------------------------------------------------------------------------------------------------------------------| +| offerUri | the offer URI | +| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | | onIssueEvent | the callback to be called when the document is issued. This callback may be called multiple times, each for every document in the offer | #### See also -| | | -|---|---| -| [IssueEvent](../-issue-event/index.md) | on how to handle the result | +| | | +|----------------------------------------------------------------------------------------------|--------------------------------------| +| [IssueEvent](../-issue-event/index.md) | on how to handle the result | | [IssueEvent.DocumentRequiresUserAuth](../-issue-event/-document-requires-user-auth/index.md) | on how to handle user authentication | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer.md index 2520d81d..35feddae 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/issue-document-by-offer.md @@ -3,7 +3,9 @@ # issueDocumentByOffer [androidJvm]\ -abstract fun [issueDocumentByOffer](issue-document-by-offer.md)(offer: [Offer](../-offer/index.md), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md)) +abstract fun [issueDocumentByOffer](issue-document-by-offer.md)(offer: [Offer](../-offer/index.md), +executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, +onIssueEvent: [OpenId4VciManager.OnIssueEvent](-on-issue-event/index.md)) Issue a document using an offer @@ -11,15 +13,15 @@ Issue a document using an offer androidJvm -| | | -|---|---| -| offer | the offer to issue | -| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | +| | | +|--------------|-----------------------------------------------------------------------------------------------------------------------------------------| +| offer | the offer to issue | +| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | | onIssueEvent | the callback to be called when the document is issued. This callback may be called multiple times, each for every document in the offer | #### See also -| | | -|---|---| -| [IssueEvent](../-issue-event/index.md) | on how to handle the result | +| | | +|----------------------------------------------------------------------------------------------|--------------------------------------| +| [IssueEvent](../-issue-event/index.md) | on how to handle the result | | [IssueEvent.DocumentRequiresUserAuth](../-issue-event/-document-requires-user-auth/index.md) | on how to handle user authentication | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resolve-document-offer.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resolve-document-offer.md index 310ffb33..b914dea7 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resolve-document-offer.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resolve-document-offer.md @@ -3,7 +3,10 @@ # resolveDocumentOffer [androidJvm]\ -abstract fun [resolveDocumentOffer](resolve-document-offer.md)(offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, onResolvedOffer: [OpenId4VciManager.OnResolvedOffer](-on-resolved-offer/index.md)) +abstract fun [resolveDocumentOffer](resolve-document-offer.md)( +offerUri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), +executor: [Executor](https://developer.android.com/reference/kotlin/java/util/concurrent/Executor.html)? = null, +onResolvedOffer: [OpenId4VciManager.OnResolvedOffer](-on-resolved-offer/index.md)) Resolve an offer using OpenId4Vci protocol @@ -11,8 +14,8 @@ Resolve an offer using OpenId4Vci protocol androidJvm -| | | -|---|---| -| offerUri | the offer URI | -| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | -| onResolvedOffer | the callback to be called when the offer is resolved | +| | | +|-----------------|-------------------------------------------------------------------------------------------------------------------------------| +| offerUri | the offer URI | +| executor | the executor defines the thread on which the callback will be called. If null, the callback will be called on the main thread | +| onResolvedOffer | the callback to be called when the offer is resolved | diff --git a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resume-with-authorization.md b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resume-with-authorization.md index 984b09d1..3579213b 100644 --- a/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resume-with-authorization.md +++ b/docs/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/resume-with-authorization.md @@ -3,7 +3,8 @@ # resumeWithAuthorization [androidJvm]\ -abstract fun [resumeWithAuthorization](resume-with-authorization.md)(intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)) +abstract fun [resumeWithAuthorization](resume-with-authorization.md)( +intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)) Resume the authorization flow after the user has been redirected back to the app @@ -11,20 +12,22 @@ Resume the authorization flow after the user has been redirected back to the app androidJvm -| | | -|---|---| +| | | +|--------|-------------------------------------------------| | intent | the intent that contains the authorization code | #### Throws -| | | -|---|---| +| | | +|------------------------------------------------------------------------------------------------------------------|---------------------------------------| | [IllegalStateException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html) | if no authorization request to resume | [androidJvm]\ -abstract fun [resumeWithAuthorization](resume-with-authorization.md)(uri: [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html)) +abstract fun [resumeWithAuthorization](resume-with-authorization.md)( +uri: [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html)) -abstract fun [resumeWithAuthorization](resume-with-authorization.md)(uri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) +abstract fun [resumeWithAuthorization](resume-with-authorization.md)( +uri: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) Resume the authorization flow after the user has been redirected back to the app @@ -32,12 +35,12 @@ Resume the authorization flow after the user has been redirected back to the app androidJvm -| | | -|---|---| +| | | +|-----|----------------------------------------------| | uri | the uri that contains the authorization code | #### Throws -| | | -|---|---| +| | | +|------------------------------------------------------------------------------------------------------------------|---------------------------------------| | [IllegalStateException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html) | if no authorization request to resume | diff --git a/docs/wallet-core/package-list b/docs/wallet-core/package-list index b8b3712d..d27b0fa5 100644 --- a/docs/wallet-core/package-list +++ b/docs/wallet-core/package-list @@ -39,6 +39,7 @@ $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer.OfferedDocument/ $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer.OfferedDocument/asPair/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/as-pair.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer.OfferedDocument/docType/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/doc-type.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer.OfferedDocument/name/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/name.md +$dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer.OfferedDocument/toString/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/-offered-document/to-string.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer///PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/index.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer/issuerName/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/issuer-name.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/Offer/offeredDocuments/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-offer/offered-documents.md @@ -65,6 +66,8 @@ $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Conf $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/build/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/build.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/clientId/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/client-id.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/clientId/#kotlin.String/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/client-id.md +$dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/debugLogging/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/debug-logging.md +$dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/debugLogging/#kotlin.Boolean/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/debug-logging.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/issuerUrl/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/issuer-url.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/issuerUrl/#kotlin.String/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/issuer-url.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.Builder/parUsage/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-builder/par-usage.md @@ -90,9 +93,10 @@ $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Conf $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.ProofType/valueOf/#kotlin.String/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-proof-type/value-of.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config.ProofType/values/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-proof-type/values.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config///PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/index.md -$dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/Config/#kotlin.String#kotlin.String#kotlin.String#kotlin.Boolean#kotlin.Boolean#kotlin.Int#kotlin.collections.List[eu.europa.ec.eudi.wallet.issue.openid4vci.OpenId4VciManager.Config.ProofType]/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-config.md +$dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/Config/#kotlin.String#kotlin.String#kotlin.String#kotlin.Boolean#kotlin.Boolean#kotlin.Int#kotlin.collections.List[eu.europa.ec.eudi.wallet.issue.openid4vci.OpenId4VciManager.Config.ProofType]#kotlin.Boolean/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/-config.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/authFlowRedirectionURI/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/auth-flow-redirection-u-r-i.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/clientId/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/client-id.md +$dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/debugLogging/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/debug-logging.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/issuerUrl/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/issuer-url.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/parUsage/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/par-usage.md $dokka.location:eu.europa.ec.eudi.wallet.issue.openid4vci/OpenId4VciManager.Config/proofTypes/#/PointingToDeclaration/wallet-core/eu.europa.ec.eudi.wallet.issue.openid4vci/-open-id4-vci-manager/-config/proof-types.md diff --git a/gradle.properties b/gradle.properties index 643ee915..c64a9b92 100644 --- a/gradle.properties +++ b/gradle.properties @@ -42,7 +42,7 @@ systemProp.sonar.host.url=https://sonarcloud.io systemProp.sonar.gradle.skipCompile=true systemProp.sonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/testDebugUnitTestCoverage/testDebugUnitTestCoverage.xml,build/reports/jacoco/testReleaseUnitTestCoverage/testReleaseUnitTestCoverage.xml systemProp.sonar.projectName=eudi-lib-android-wallet-core -VERSION_NAME=0.9.4-SNAPSHOT +VERSION_NAME=0.9.5-SNAPSHOT SONATYPE_HOST=S01 SONATYPE_AUTOMATIC_RELEASE=false diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1ec8ee91..a3da424b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,7 +10,7 @@ espresso-contrib = "3.5.1" espresso-core = "3.5.1" eudi-document-manager = "0.3.0-SNAPSHOT" eudi-iso18013-data-transfer = "0.2.0-SNAPSHOT" -eudi-lib-jvm-openid4vci-kt = "0.3.0" +eudi-lib-jvm-openid4vci-kt = "0.3.1" eudi-lib-jvm-siop-openid4vp-kt = "0.4.2" gradle-plugin = "7.4.0" identity-credential = "20231002" @@ -53,6 +53,7 @@ json = { module = "org.json:json", version.ref = "json" } junit = { module = "junit:junit", version.ref = "junit" } junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit" } ktor-client-android = { module = "io.ktor:ktor-client-android", version.ref = "ktor" } +ktor-client-logging = {module ="io.ktor:ktor-client-logging", version.ref="ktor"} mockito-android = { module = "org.mockito:mockito-android", version.ref = "mockito-android" } mockito-inline = { module = "org.mockito:mockito-inline", version.ref = "mockito-inline" } mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockito-inline" } diff --git a/wallet-core/build.gradle b/wallet-core/build.gradle index c4e3d429..a064425c 100644 --- a/wallet-core/build.gradle +++ b/wallet-core/build.gradle @@ -132,6 +132,7 @@ dependencies { // Ktor Android Engine runtimeOnly libs.ktor.client.android + implementation libs.ktor.client.logging // Bouncy Castle implementation libs.bouncy.castle.prov diff --git a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOffer.kt b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOffer.kt index d4b99e6c..15518d1c 100644 --- a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOffer.kt +++ b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOffer.kt @@ -43,6 +43,10 @@ internal data class DefaultOffer( .filterKeys { it in credentialOffer.credentialConfigurationIdentifiers } .filterValues { credentialConfigurationFilter(it) } .map { (id, conf) -> Offer.OfferedDocument(conf.name, conf.docType, id, conf) } + + override fun toString(): String { + return "Offer(issuerName='$issuerName', offeredDocuments=$offeredDocuments)" + } } /** diff --git a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOpenId4VciManager.kt b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOpenId4VciManager.kt index aa3e0bfd..df053125 100644 --- a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOpenId4VciManager.kt +++ b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOpenId4VciManager.kt @@ -130,7 +130,7 @@ internal class DefaultOpenId4VciManager( launch(onIssueEvent.wrap(executor)) { coroutineScope, listener -> try { val offer = offerUriCache[offerUri].also { - Log.d(TAG, "OfferUri $offerUri cache hit") + logDebug("OfferUri $offerUri cache hit") } ?: CredentialOfferRequestResolver().resolve(offerUri).getOrThrow() .let { DefaultOffer( @@ -157,11 +157,13 @@ internal class DefaultOpenId4VciManager( ) { launch(onResolvedOffer.wrap(executor)) { coroutineScope, callback -> try { - val credentialOffer = CredentialOfferRequestResolver().resolve(offerUri).getOrThrow() + val credentialOffer = + CredentialOfferRequestResolver(createKtorHttpClient(config.debugLogging)).resolve(offerUri) + .getOrThrow() val offer = DefaultOffer(credentialOffer, Compose(MsoMdocFormatFilter, ProofTypeFilter(config.proofTypes))) offerUriCache[offerUri] = offer - Log.d(TAG, "OfferUri $offerUri resolved") + logDebug("OfferUri $offerUri resolved") callback(OfferResult.Success(offer)) coroutineScope.cancel("resolveDocumentOffer succeeded") } catch (e: Throwable) { @@ -174,16 +176,19 @@ internal class DefaultOpenId4VciManager( } override fun resumeWithAuthorization(intent: Intent) { + logDebug("resumeWithAuthorization: ${intent.data}") suspendedAuthorization?.use { it.resumeFromIntent(intent) } ?: throw IllegalStateException("No authorization request to resume") } override fun resumeWithAuthorization(uri: String) { + logDebug("resumeWithAuthorization: $uri") suspendedAuthorization?.use { it.resumeFromUri(uri) } ?: throw IllegalStateException("No authorization request to resume") } override fun resumeWithAuthorization(uri: Uri) { + logDebug("resumeWithAuthorization: $uri") suspendedAuthorization?.use { it.resumeFromUri(uri) } ?: throw IllegalStateException("No authorization request to resume") } @@ -201,7 +206,9 @@ internal class DefaultOpenId4VciManager( ) { offer as DefaultOffer val credentialOffer = offer.credentialOffer - val issuer = Issuer.make(config.toOpenId4VCIConfig(), credentialOffer).getOrThrow() + val issuer = + Issuer.make(config.toOpenId4VCIConfig(), credentialOffer, createKtorHttpClient(config.debugLogging)) + .getOrThrow() onEvent(IssueEvent.Started(offer.offeredDocuments.size)) with(issuer) { val prepareAuthorizationCodeRequest = prepareAuthorizationRequest().getOrThrow() @@ -218,7 +225,7 @@ internal class DefaultOpenId4VciManager( .createIssuanceRequest(item, config.useStrongBoxIfSupported) .getOrThrow() - Log.d(TAG, "Issuing document: ${issuanceRequest.documentId} for ${issuanceRequest.docType}") + logDebug("Issuing document: ${issuanceRequest.documentId} for ${issuanceRequest.docType}") doIssueCredential( authorizedRequest, @@ -241,7 +248,7 @@ internal class DefaultOpenId4VciManager( private suspend fun openBrowserForAuthorization(prepareAuthorizationCodeRequest: AuthorizationRequestPrepared): Result { val authorizationCodeUri = Uri.parse(prepareAuthorizationCodeRequest.authorizationCodeURL.value.toString()) - + logDebug("openBrowserForAuthorization: $authorizationCodeUri") return suspendCancellableCoroutine { continuation -> suspendedAuthorization = SuspendedAuthorization(continuation) continuation.invokeOnCancellation { @@ -274,7 +281,7 @@ internal class DefaultOpenId4VciManager( ) { val claimSet = null val payload = IssuanceRequestPayload.ConfigurationBased(credentialConfigurationIdentifier, claimSet) - Log.d(TAG, "doIssueCredential payload: $payload") + logDebug("doIssueCredential payload: $payload") when (authRequest) { is AuthorizedRequest.NoProofRequired -> doRequestSingleNoProof( authRequest, @@ -315,10 +322,10 @@ internal class DefaultOpenId4VciManager( addedDocuments: MutableSet, onEvent: OpenId4VciManager.OnResult ) { - Log.d(TAG, "doRequestSingleNoProof for ${issuanceRequest.documentId}") + logDebug("doRequestSingleNoProof for ${issuanceRequest.documentId}") when (val outcome = authRequest.requestSingle(payload).getOrThrow()) { is SubmittedRequest.InvalidProof -> { - Log.d(TAG, "doRequestSingleNoProof invalid proof") + logDebug("doRequestSingleNoProof invalid proof") doRequestSingleWithProof( authRequest.handleInvalidProof(outcome.cNonce), payload, @@ -358,9 +365,9 @@ internal class DefaultOpenId4VciManager( addedDocuments: MutableSet, onEvent: OpenId4VciManager.OnResult ) { - Log.d(TAG, "doRequestSingleWithProof for ${issuanceRequest.documentId}") + logDebug("doRequestSingleWithProof for ${issuanceRequest.documentId}") val proofSigner = ProofSigner(issuanceRequest, credentialConfiguration, config.proofTypes).getOrThrow() - Log.d(TAG, "doRequestSingleWithProof proofSigner: ${proofSigner::class.java.name}") + logDebug("doRequestSingleWithProof proofSigner: ${proofSigner::class.java.name}") try { when (val outcome = authRequest.requestSingle(payload, proofSigner.popSigner).getOrThrow()) { is SubmittedRequest.Failed -> onEvent(IssueEvent.DocumentFailed(issuanceRequest, outcome.error)) @@ -382,10 +389,10 @@ internal class DefaultOpenId4VciManager( } catch (e: Throwable) { when (val status = proofSigner.userAuthStatus) { is UserAuthStatus.Required -> { - Log.d(TAG, "doRequestSingleWithProof userAuthStatus: $status") + logDebug("doRequestSingleWithProof userAuthStatus: $status") val event = object : IssueEvent.DocumentRequiresUserAuth(issuanceRequest, status.cryptoObject) { override fun resume() { - Log.d(TAG, "doRequestSingleWithProof resume from user auth") + logDebug("doRequestSingleWithProof resume from user auth") runBlocking { doRequestSingleWithProof( authRequest, @@ -435,8 +442,8 @@ internal class DefaultOpenId4VciManager( is IssuedCredential.Issued -> { val cbor = Base64.getUrlDecoder().decode(issuedCredential.credential) - Log.d(TAG, "storeIssuedCredential for ${issuanceRequest.documentId}") - Log.d(TAG, "storeIssuedCredential cbor: ${Hex.toHexString(cbor)}") + logDebug("storeIssuedCredential for ${issuanceRequest.documentId}") + logDebug("storeIssuedCredential cbor: ${Hex.toHexString(cbor)}") when (val addResult = documentManager.addDocument(issuanceRequest, cbor)) { is AddDocumentResult.Failure -> { @@ -467,42 +474,47 @@ internal class DefaultOpenId4VciManager( }.logResult() } + /** + * Wraps the given [OpenId4VciManager.OnResult] with debug logging. + */ private inline fun , reified V> R.logResult(): OpenId4VciManager.OnResult { - return OpenId4VciManager.OnResult { result: V -> - when (result) { - is IssueEvent.DocumentIssued -> Log.d( - TAG, - "${IssueEvent.DocumentIssued::class.java.name} for ${result.documentId}" - ) + return if (config.debugLogging) { + OpenId4VciManager.OnResult { result: V -> + when (result) { + is IssueEvent.DocumentIssued -> Log.d( + TAG, + "${IssueEvent.DocumentIssued::class.java.name} for ${result.documentId}" + ) - is IssueEvent.DocumentFailed -> Log.e( - TAG, - IssueEvent.DocumentFailed::class.java.simpleName, - result.cause - ) + is IssueEvent.DocumentFailed -> Log.e( + TAG, + IssueEvent.DocumentFailed::class.java.simpleName, + result.cause + ) - is IssueEvent.DocumentRequiresUserAuth -> Log.d( - TAG, - IssueEvent.DocumentRequiresUserAuth::class.java.simpleName - ) + is IssueEvent.DocumentRequiresUserAuth -> Log.d( + TAG, + IssueEvent.DocumentRequiresUserAuth::class.java.simpleName + ) - is IssueEvent.Started -> Log.d( - TAG, - "${IssueEvent.Started::class.java.name} for ${result.total} documents" - ) + is IssueEvent.Started -> Log.d( + TAG, + "${IssueEvent.Started::class.java.name} for ${result.total} documents" + ) - is IssueEvent.Finished -> Log.d( - TAG, - "${IssueEvent.Finished::class.java.name} for ${result.issuedDocuments}" - ) + is IssueEvent.Finished -> Log.d( + TAG, + "${IssueEvent.Finished::class.java.name} for ${result.issuedDocuments}" + ) - is IssueEvent.Failure -> Log.e(TAG, IssueEvent.Failure::class.java.simpleName, result.cause) - is OfferResult.Failure -> Log.e(TAG, OfferResult.Failure::class.java.simpleName, result.error) - is OfferResult.Success -> Log.d(TAG, "${OfferResult.Success::class.java.name} for ${result.offer}") - else -> Log.d(TAG, V::class.java.simpleName) + is IssueEvent.Failure -> Log.e(TAG, IssueEvent.Failure::class.java.simpleName, result.cause) + is OfferResult.Failure -> Log.e(TAG, OfferResult.Failure::class.java.simpleName, result.error) + is OfferResult.Success -> logDebug("${OfferResult.Success::class.java.name} for ${result.offer}") + else -> logDebug(V::class.java.simpleName) + } + this.onResult(result) } - this.onResult(result) - } + } else this } /** @@ -524,6 +536,15 @@ internal class DefaultOpenId4VciManager( block() } + private fun logDebug(message: String, throwable: Throwable? = null) { + if (config.debugLogging) { + when (throwable) { + null -> Log.d(TAG, message) + else -> Log.d(TAG, message, throwable) + } + } + } + companion object { internal const val TAG = "DefaultOpenId4VciManage" diff --git a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Offer.kt b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Offer.kt index ca5ea62c..3d853aaa 100644 --- a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Offer.kt +++ b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Offer.kt @@ -43,6 +43,10 @@ interface Offer { * Converts this item to a pair of name and document type. */ fun asPair() = Pair(name, docType) + + override fun toString(): String { + return "OfferedDocument(name='$name', docType='$docType')" + } } } diff --git a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManager.kt b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManager.kt index 053c9e04..bc84bd30 100644 --- a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManager.kt +++ b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManager.kt @@ -170,6 +170,7 @@ interface OpenId4VciManager { * @property useDPoPIfSupported flag that if set will enable the use of DPoP JWT * @property parUsage if PAR should be used * @property proofTypes the proof types to use + * @property debugLogging flag to enable debug logging */ data class Config( val issuerUrl: String, @@ -178,7 +179,8 @@ interface OpenId4VciManager { val useStrongBoxIfSupported: Boolean, val useDPoPIfSupported: Boolean, @ParUsage val parUsage: Int, - val proofTypes: List + val proofTypes: List, + val debugLogging: Boolean ) { /** @@ -223,6 +225,7 @@ interface OpenId4VciManager { * @property useStrongBoxIfSupported use StrongBox for document keys if supported * @property useDPoPIfSupported flag that if set will enable the use of DPoP JWT * @property parUsage if PAR should be used + * @property debugLogging flag to enable debug logging. Default is false * */ class Builder { @@ -237,6 +240,8 @@ interface OpenId4VciManager { private var proofTypes: List = listOf(ProofType.JWT, ProofType.CWT) + var debugLogging: Boolean = false + /** * Set the issuer url * @param issuerUrl the issuer url @@ -289,6 +294,11 @@ interface OpenId4VciManager { this.proofTypes = distinctList } + /** + * Set the debug logging flag + */ + fun debugLogging(debugLogging: Boolean) = apply { this.debugLogging = debugLogging } + /** * Build the [Config] * @throws [IllegalStateException] if issuerUrl, clientId or authFlowRedirectionURI is not set @@ -305,7 +315,8 @@ interface OpenId4VciManager { useStrongBoxIfSupported, useDPoPIfSupported, parUsage, - proofTypes + proofTypes, + debugLogging ) } diff --git a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/SuspendedAuthorization.kt b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/SuspendedAuthorization.kt index b37b083a..2af7e67c 100644 --- a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/SuspendedAuthorization.kt +++ b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/SuspendedAuthorization.kt @@ -52,7 +52,6 @@ internal class SuspendedAuthorization( * @throws Throwable if the uri is invalid */ fun resumeFromUri(uri: Uri) { - Log.d(TAG, "resumeFromUri: $uri") try { uri.getQueryParameter("code")?.let { authorizationCode -> uri.getQueryParameter("state")?.let { serverState -> diff --git a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Utils.kt b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Utils.kt index 135f3d05..b621e6ff 100644 --- a/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Utils.kt +++ b/wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/Utils.kt @@ -16,11 +16,22 @@ package eu.europa.ec.eudi.wallet.issue.openid4vci +import android.util.Log import com.nimbusds.jose.JWSAlgorithm import com.nimbusds.jose.crypto.impl.ECDSA +import eu.europa.ec.eudi.openid4vci.DefaultHttpClientFactory +import eu.europa.ec.eudi.openid4vci.KtorHttpClientFactory import eu.europa.ec.eudi.wallet.document.CreateIssuanceRequestResult import eu.europa.ec.eudi.wallet.document.DocumentManager import eu.europa.ec.eudi.wallet.document.IssuanceRequest +import io.ktor.client.* +import io.ktor.client.plugins.* +import io.ktor.client.plugins.contentnegotiation.* +import io.ktor.client.plugins.logging.* +import io.ktor.client.request.* +import io.ktor.client.statement.* +import io.ktor.serialization.kotlinx.json.* +import kotlinx.serialization.json.Json import org.bouncycastle.util.io.pem.PemObject import org.bouncycastle.util.io.pem.PemWriter import java.io.StringWriter @@ -99,4 +110,35 @@ internal fun ByteArray.derToJose(algorithm: JWSAlgorithm = JWSAlgorithm.ES256): return derToConcat(len) } +@JvmSynthetic +internal fun createKtorHttpClient(debug: Boolean = false): KtorHttpClientFactory { + return when { + debug -> { + { + HttpClient { + install(ContentNegotiation) { + json( + json = Json { + ignoreUnknownKeys = true + }, + ) + } + install(Logging) { + logger = object : Logger { + override fun log(message: String) { + Log.d(DefaultOpenId4VciManager.TAG, message) + } + } + level = LogLevel.ALL + } + } + } + } + + else -> DefaultHttpClientFactory + + + } +} + diff --git a/wallet-core/src/test/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManagerBuilderTest.kt b/wallet-core/src/test/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManagerBuilderTest.kt index e820cbe4..0acff246 100644 --- a/wallet-core/src/test/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManagerBuilderTest.kt +++ b/wallet-core/src/test/java/eu/europa/ec/eudi/wallet/issue/openid4vci/OpenId4VciManagerBuilderTest.kt @@ -35,6 +35,7 @@ class OpenId4VciManagerBuilderTest { useDPoPIfSupported = true, parUsage = OpenId4VciManager.Config.ParUsage.IF_SUPPORTED, proofTypes = listOf(OpenId4VciManager.Config.ProofType.JWT), + debugLogging = true, ) @Test