libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 3fcf6d9831a25a94f919ad0ea3d4b238f7e821d6
parent aa91f30becd9fe2bff2e15c31d0fc592aa70cba3
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue,  7 Apr 2020 20:28:44 +0200

receive subscriber password upon registration.

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt | 3++-
Mnexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 3+++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt @@ -70,7 +70,8 @@ data class EbicsSubscriberInfoRequestJson( val hostID: String, val partnerID: String, val userID: String, - val systemID: String? = null + val systemID: String? = null, + val password: String? = null ) /** diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt @@ -1148,6 +1148,9 @@ fun main() { signaturePrivateKey = SerialBlob(pairA.private.encoded) encryptionPrivateKey = SerialBlob(pairB.private.encoded) authenticationPrivateKey = SerialBlob(pairC.private.encoded) + password = if (body.password != null) { + SerialBlob(CryptoUtil.hashStringSHA256(body.password)) + } else null } } } catch (e: Exception) {