summaryrefslogtreecommitdiff
path: root/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
diff options
context:
space:
mode:
authorAntoine A <>2024-03-26 20:03:28 +0100
committerAntoine A <>2024-03-26 20:03:28 +0100
commit5ce5347e053d1222a9ac929de2f5373dd22337ad (patch)
tree79db9d4a13ff7e1ba0b246ac3a81700ac1fbab7d /nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
parent32d23aef89e4e82f99a320327675548b1a7ddb49 (diff)
downloadlibeufin-5ce5347e053d1222a9ac929de2f5373dd22337ad.tar.gz
libeufin-5ce5347e053d1222a9ac929de2f5373dd22337ad.tar.bz2
libeufin-5ce5347e053d1222a9ac929de2f5373dd22337ad.zip
Improve testbench and simplify EbicsKeyMng
Diffstat (limited to 'nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt')
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
index b0cbc299..e9bb3713 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt
@@ -110,14 +110,14 @@ suspend fun doKeysRequestAndUpdateState(
orderType: KeysOrderType
) {
logger.info("Doing key request ${orderType.name}")
- val impl = Ebics3KeyMng(cfg, privs)
+ val impl = EbicsKeyMng(cfg, privs)
val req = when(orderType) {
KeysOrderType.INI -> impl.INI()
KeysOrderType.HIA -> impl.HIA()
KeysOrderType.HPB -> impl.HPB()
}
val xml = client.postToBank(cfg.hostBaseUrl, req, "$orderType")
- val resp = Ebics3KeyMng.parseResponse(xml, privs.encryption_private_key)
+ val resp = EbicsKeyMng.parseResponse(xml, privs.encryption_private_key)
when (orderType) {
KeysOrderType.INI, KeysOrderType.HIA -> {
@@ -140,7 +140,7 @@ suspend fun doKeysRequestAndUpdateState(
val orderData = requireNotNull(orderData) {
"HPB: missing order data"
}
- val (authPub, encPub) = Ebics3KeyMng.parseHpbOrder(orderData)
+ val (authPub, encPub) = EbicsKeyMng.parseHpbOrder(orderData)
val bankKeys = BankPublicKeysFile(
bank_authentication_public_key = authPub,
bank_encryption_public_key = encPub,