diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-08-25 15:47:32 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-08-25 15:47:32 +0200 |
commit | 631f31124f44895b5271846213445f10a5e41800 (patch) | |
tree | 46af6636adadadcccab437d9cc4b899cd47b3918 /id | |
parent | f376278d4d764475d2d806ef537ffcfa2f729997 (diff) | |
download | moa-id-spss-631f31124f44895b5271846213445f10a5e41800.tar.gz moa-id-spss-631f31124f44895b5271846213445f10a5e41800.tar.bz2 moa-id-spss-631f31124f44895b5271846213445f10a5e41800.zip |
log a warning if private-key type can not be evaluated
Diffstat (limited to 'id')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/CredentialProvider.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); |