Package net.finmath.pontes.erc7573
Class PemEcdsaPaymentSigner
java.lang.Object
net.finmath.pontes.erc7573.PemEcdsaPaymentSigner
- All Implemented Interfaces:
PaymentSigner
SHA256withECDSA signer backed by an unencrypted PKCS#8 EC private-key PEM or by a PKCS#12
keystore, which is how Pontes usually hands out client material.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.finmath.pontes.erc7573.PaymentSigner
PaymentSigner.PaymentSignature -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringStandalone Direct RTGS keeps the UUID hyphens and has no XvP prefix.static PemEcdsaPaymentSignerstatic PemEcdsaPaymentSignerfromPemFiles(Path privateKeyPem, Path certificatePem) sign(UUID xvpTransactionId, PontesTransaction transaction) signDirect(PontesDirectPaymentRequest request) static byte[]signedPayload(String text) Pontes signing rules: SHA-256 is computed over the concatenated text and that hash is then signed with SHA256withECDSA.static StringsignerPem(X509Certificate certificate) Pontes signerPEM: Base64 of the complete certificate PEM including BEGIN/END armor.static StringsigningText(UUID xvpTransactionId, PontesTransaction transaction) NRO profile: xvp + UUID without hyphens + amount + buyer BIC + seller BIC, with no separators.
-
Constructor Details
-
PemEcdsaPaymentSigner
-
-
Method Details
-
fromPemFiles
public static PemEcdsaPaymentSigner fromPemFiles(Path privateKeyPem, Path certificatePem) throws IOException - Throws:
IOException
-
fromPem
-
sign
- Specified by:
signin interfacePaymentSigner
-
signDirect
- Specified by:
signDirectin interfacePaymentSigner
-
signedPayload
Pontes signing rules: SHA-256 is computed over the concatenated text and that hash is then signed with SHA256withECDSA. The hash enters the signature as lowercase hex string, which is what the Pontes gateway accepts (see scripts/StandAlone_Testskript.py). -
signerPem
Pontes signerPEM: Base64 of the complete certificate PEM including BEGIN/END armor.- Throws:
CertificateEncodingException
-
directSigningText
Standalone Direct RTGS keeps the UUID hyphens and has no XvP prefix. -
signingText
NRO profile: xvp + UUID without hyphens + amount + buyer BIC + seller BIC, with no separators.
-