From 631f31124f44895b5271846213445f10a5e41800 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 25 Aug 2015 15:47:32 +0200 Subject: log a warning if private-key type can not be evaluated --- .../egovernment/moa/id/protocols/pvp2x/signer/CredentialProvider.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'id/server/idserverlib/src/main/java/at') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/CredentialProvider.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/CredentialProvider.java index 48e435777..fe287a433 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/CredentialProvider.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/CredentialProvider.java @@ -125,6 +125,9 @@ public class CredentialProvider { } else if (privatekey instanceof iaik.security.ecc.ecdsa.ECPrivateKey) { signer.setSignatureAlgorithm(SignatureConstants.ALGO_ID_SIGNATURE_ECDSA_SHA1); + } else { + Logger.warn("Could NOT evaluate the Private-Key type from PVP credential."); + } signer.setCanonicalizationAlgorithm(SignatureConstants.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); -- cgit v1.2.3