Skip to content

Commit

Permalink
fix supported proof type and algorithms selection; OpenId4VciManager.…
Browse files Browse the repository at this point in the history
…Config supports parUsage configuration;
  • Loading branch information
vkanellopoulos committed Jun 5, 2024
1 parent d84ba97 commit 0b7f06c
Show file tree
Hide file tree
Showing 34 changed files with 378 additions and 235 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ val config = EudiWalletConfig.Builder(applicationContext)
authFlowRedirectionURI("eudi-openid4ci://authorize")
useStrongBoxIfSupported(false)
useDPoP(false)
parUsage(ParUsage.IF_SUPPORTED)
}
.build()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
# Constants

[androidJvm]\
object [Constants](index.md)
object [~~Constants~~](index.md)---

### Deprecated

Will be removed completely in following version. Replace with actual values.

---

Shared constant values for doc types and namespaces

Expand Down
6 changes: 3 additions & 3 deletions docs/wallet-core/eu.europa.ec.eudi.wallet.document/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

## Types

| Name | Summary |
|---|---|
| [Constants](-constants/index.md) | [androidJvm]<br>object [Constants](-constants/index.md)<br>Shared constant values for doc types and namespaces |
| Name | Summary |
|----------------------------------|--------------------------------------------------------------------------------------------------------------------|
| [Constants](-constants/index.md) | [androidJvm]<br>object [~~Constants~~](-constants/index.md)<br>Shared constant values for doc types and namespaces |
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,26 @@ Builder to create an instance of [Config](../index.md)

## Functions

| Name | Summary |
|---|---|
| [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md) | [androidJvm]<br>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)<br>Set the redirection URI for the authorization flow |
| [build](build.md) | [androidJvm]<br>fun [build](build.md)(): [OpenId4VciManager.Config](../index.md)<br>Build the [Config](../index.md) |
| [clientId](client-id.md) | [androidJvm]<br>fun [clientId](client-id.md)(clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md)<br>Set the client id |
| [issuerUrl](issuer-url.md) | [androidJvm]<br>fun [issuerUrl](issuer-url.md)(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md)<br>Set the issuer url |
| [useDPoP](use-d-po-p.md) | [androidJvm]<br>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)<br>Set the flag that if set will enable the use of DPoP JWT |
| [useStrongBoxIfSupported](use-strong-box-if-supported.md) | [androidJvm]<br>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)<br>Set the flag that if set will enable the use of StrongBox for document keys if supported |
| [withAuthFlowRedirectionURI](with-auth-flow-redirection-u-r-i.md) | [androidJvm]<br>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) |
| [withClientId](with-client-id.md) | [androidJvm]<br>fun [withClientId](with-client-id.md)(clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) |
| [withIssuerUrl](with-issuer-url.md) | [androidJvm]<br>fun [withIssuerUrl](with-issuer-url.md)(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) |
| Name | Summary |
|-------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md) | [androidJvm]<br>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)<br>Set the redirection URI for the authorization flow |
| [build](build.md) | [androidJvm]<br>fun [build](build.md)(): [OpenId4VciManager.Config](../index.md)<br>Build the [Config](../index.md) |
| [clientId](client-id.md) | [androidJvm]<br>fun [clientId](client-id.md)(clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md)<br>Set the client id |
| [issuerUrl](issuer-url.md) | [androidJvm]<br>fun [issuerUrl](issuer-url.md)(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md)<br>Set the issuer url |
| [parUsage](par-usage.md) | [androidJvm]<br>fun [parUsage](par-usage.md)(parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [OpenId4VciManager.Config.Builder](index.md) |
| [useDPoP](use-d-po-p.md) | [androidJvm]<br>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)<br>Set the flag that if set will enable the use of DPoP JWT |
| [useStrongBoxIfSupported](use-strong-box-if-supported.md) | [androidJvm]<br>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)<br>Set the flag that if set will enable the use of StrongBox for document keys if supported |
| [withAuthFlowRedirectionURI](with-auth-flow-redirection-u-r-i.md) | [androidJvm]<br>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) |
| [withClientId](with-client-id.md) | [androidJvm]<br>fun [withClientId](with-client-id.md)(clientId: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) |
| [withIssuerUrl](with-issuer-url.md) | [androidJvm]<br>fun [withIssuerUrl](with-issuer-url.md)(issuerUrl: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [OpenId4VciManager.Config.Builder](index.md) |

## Properties

| Name | Summary |
|---|---|
| [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md) | [androidJvm]<br>var [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>the redirection URI for the authorization flow |
| [clientId](client-id.md) | [androidJvm]<br>var [clientId](client-id.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>the client id |
| [issuerUrl](issuer-url.md) | [androidJvm]<br>var [issuerUrl](issuer-url.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>the issuer url |
| [useDPoPIfSupported](use-d-po-p-if-supported.md) | [androidJvm]<br>var [useDPoPIfSupported](use-d-po-p-if-supported.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>flag that if set will enable the use of DPoP JWT |
| Name | Summary |
|-----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md) | [androidJvm]<br>var [authFlowRedirectionURI](auth-flow-redirection-u-r-i.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>the redirection URI for the authorization flow |
| [clientId](client-id.md) | [androidJvm]<br>var [clientId](client-id.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>the client id |
| [issuerUrl](issuer-url.md) | [androidJvm]<br>var [issuerUrl](issuer-url.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?<br>the issuer url |
| [parUsage](par-usage.md) | [androidJvm]<br>var [parUsage](par-usage.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)<br>if PAR should be used |
| [useDPoPIfSupported](use-d-po-p-if-supported.md) | [androidJvm]<br>var [useDPoPIfSupported](use-d-po-p-if-supported.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>flag that if set will enable the use of DPoP JWT |
| [useStrongBoxIfSupported](use-strong-box-if-supported.md) | [androidJvm]<br>var [useStrongBoxIfSupported](use-strong-box-if-supported.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>use StrongBox for document keys if supported |
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//[wallet-core](../../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../../index.md)/[OpenId4VciManager](../../index.md)/[Config](../index.md)/[Builder](index.md)/[parUsage](par-usage.md)

# parUsage

[androidJvm]\
fun [parUsage](par-usage.md)(
parUsage: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [OpenId4VciManager.Config.Builder](index.md)

var [parUsage](par-usage.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
# Config

[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))
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))
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[wallet-core](../../../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../../../index.md)/[OpenId4VciManager](../../../index.md)/[Config](../../index.md)/[ParUsage](../index.md)/[Companion](index.md)/[ALWAYS](-a-l-w-a-y-s.md)

# ALWAYS

[androidJvm]\
const val [ALWAYS](-a-l-w-a-y-s.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 4
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//[wallet-core](../../../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../../../index.md)/[OpenId4VciManager](../../../index.md)/[Config](../../index.md)/[ParUsage](../index.md)/[Companion](index.md)/[IF_SUPPORTED](-i-f_-s-u-p-p-o-r-t-e-d.md)

# IF_SUPPORTED

[androidJvm]\
const
val [IF_SUPPORTED](-i-f_-s-u-p-p-o-r-t-e-d.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) =
2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[wallet-core](../../../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../../../index.md)/[OpenId4VciManager](../../../index.md)/[Config](../../index.md)/[ParUsage](../index.md)/[Companion](index.md)/[NEVER](-n-e-v-e-r.md)

# NEVER

[androidJvm]\
const val [NEVER](-n-e-v-e-r.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//[wallet-core](../../../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../../../index.md)/[OpenId4VciManager](../../../index.md)/[Config](../../index.md)/[ParUsage](../index.md)/[Companion](index.md)

# Companion

[androidJvm]\
object [Companion](index.md)

## Properties

| Name | Summary |
|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ALWAYS](-a-l-w-a-y-s.md) | [androidJvm]<br>const val [ALWAYS](-a-l-w-a-y-s.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 4 |
| [IF_SUPPORTED](-i-f_-s-u-p-p-o-r-t-e-d.md) | [androidJvm]<br>const val [IF_SUPPORTED](-i-f_-s-u-p-p-o-r-t-e-d.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 2 |
| [NEVER](-n-e-v-e-r.md) | [androidJvm]<br>const val [NEVER](-n-e-v-e-r.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 |
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//[wallet-core](../../../../../index.md)/[eu.europa.ec.eudi.wallet.issue.openid4vci](../../../index.md)/[OpenId4VciManager](../../index.md)/[Config](../index.md)/[ParUsage](index.md)

# ParUsage

[androidJvm]\
annotation class [ParUsage](index.md)

## Types

| Name | Summary |
|----------------------------------|---------------------------------------------------------|
| [Companion](-companion/index.md) | [androidJvm]<br>object [Companion](-companion/index.md) |
Loading

0 comments on commit 0b7f06c

Please sign in to comment.