aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2015-08-25 15:47:32 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2015-08-25 15:47:32 +0200
commit631f31124f44895b5271846213445f10a5e41800 (patch)
tree46af6636adadadcccab437d9cc4b899cd47b3918 /id/server/idserverlib/src
parentf376278d4d764475d2d806ef537ffcfa2f729997 (diff)
downloadmoa-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/server/idserverlib/src')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/signer/CredentialProvider.java3
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);