-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from niscy-eudiw/main
RQES Config refactored
- Loading branch information
Showing
5 changed files
with
169 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
business-logic/src/demo/java/eu/europa/ec/businesslogic/config/RQESConfigImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (c) 2023 European Commission | ||
* | ||
* Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the European | ||
* Commission - subsequent versions of the EUPL (the "Licence"); You may not use this work | ||
* except in compliance with the Licence. | ||
* | ||
* You may obtain a copy of the Licence at: | ||
* https://joinup.ec.europa.eu/software/page/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF | ||
* ANY KIND, either express or implied. See the Licence for the specific language | ||
* governing permissions and limitations under the Licence. | ||
*/ | ||
|
||
package eu.europa.ec.businesslogic.config | ||
|
||
import eu.europa.ec.businesslogic.BuildConfig | ||
import eu.europa.ec.eudi.rqes.HashAlgorithmOID | ||
import eu.europa.ec.eudi.rqes.SigningAlgorithmOID | ||
import eu.europa.ec.eudi.rqesui.domain.extension.toUri | ||
import eu.europa.ec.eudi.rqesui.infrastructure.config.EudiRQESUiConfig | ||
import eu.europa.ec.eudi.rqesui.infrastructure.config.RqesServiceConfig | ||
import eu.europa.ec.eudi.rqesui.infrastructure.config.data.QtspData | ||
import java.net.URI | ||
|
||
class RQESConfigImpl : EudiRQESUiConfig { | ||
|
||
override val rqesServiceConfig: RqesServiceConfig | ||
get() = RqesServiceConfig( | ||
clientId = "wallet-client", | ||
clientSecret = "somesecret2", | ||
authFlowRedirectionURI = URI.create(BuildConfig.RQES_DEEPLINK), | ||
signingAlgorithm = SigningAlgorithmOID.RSA, | ||
hashAlgorithm = HashAlgorithmOID.SHA_256, | ||
) | ||
|
||
override val qtsps: List<QtspData> | ||
get() = listOf( | ||
QtspData( | ||
name = "Wallet-Centric", | ||
endpoint = "https://walletcentric.signer.eudiw.dev/csc/v2".toUri(), | ||
scaUrl = "https://walletcentric.signer.eudiw.dev", | ||
) | ||
) | ||
|
||
override val printLogs: Boolean get() = BuildConfig.DEBUG | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
business-logic/src/dev/java/eu/europa/ec/businesslogic/config/RQESConfigImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (c) 2023 European Commission | ||
* | ||
* Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the European | ||
* Commission - subsequent versions of the EUPL (the "Licence"); You may not use this work | ||
* except in compliance with the Licence. | ||
* | ||
* You may obtain a copy of the Licence at: | ||
* https://joinup.ec.europa.eu/software/page/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF | ||
* ANY KIND, either express or implied. See the Licence for the specific language | ||
* governing permissions and limitations under the Licence. | ||
*/ | ||
|
||
package eu.europa.ec.businesslogic.config | ||
|
||
import eu.europa.ec.businesslogic.BuildConfig | ||
import eu.europa.ec.eudi.rqes.HashAlgorithmOID | ||
import eu.europa.ec.eudi.rqes.SigningAlgorithmOID | ||
import eu.europa.ec.eudi.rqesui.domain.extension.toUri | ||
import eu.europa.ec.eudi.rqesui.infrastructure.config.EudiRQESUiConfig | ||
import eu.europa.ec.eudi.rqesui.infrastructure.config.RqesServiceConfig | ||
import eu.europa.ec.eudi.rqesui.infrastructure.config.data.QtspData | ||
import java.net.URI | ||
|
||
class RQESConfigImpl : EudiRQESUiConfig { | ||
|
||
override val rqesServiceConfig: RqesServiceConfig | ||
get() = RqesServiceConfig( | ||
clientId = "wallet-client", | ||
clientSecret = "somesecret2", | ||
authFlowRedirectionURI = URI.create(BuildConfig.RQES_DEEPLINK), | ||
signingAlgorithm = SigningAlgorithmOID.RSA, | ||
hashAlgorithm = HashAlgorithmOID.SHA_256, | ||
) | ||
|
||
override val qtsps: List<QtspData> | ||
get() = listOf( | ||
QtspData( | ||
name = "Wallet-Centric", | ||
endpoint = "https://walletcentric.signer.eudiw.dev/csc/v2".toUri(), | ||
scaUrl = "https://walletcentric.signer.eudiw.dev", | ||
) | ||
) | ||
|
||
override val printLogs: Boolean get() = BuildConfig.DEBUG | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters