diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-08-27 12:35:09 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-08-27 12:35:09 +0200 |
commit | 72558c0b569fb678319bf5e155689167673d0855 (patch) | |
tree | d0a37abbf14c9b648ac6f7786eee6bcc1c0ae2e4 | |
parent | 957f1e7ee2c2c9ba857d3527b7575c70c1808766 (diff) | |
download | moa-id-spss-72558c0b569fb678319bf5e155689167673d0855.tar.gz moa-id-spss-72558c0b569fb678319bf5e155689167673d0855.tar.bz2 moa-id-spss-72558c0b569fb678319bf5e155689167673d0855.zip |
fix error message in case of wrong encoded foreign-bPK decryption keys
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java index 922825e3a..3e6308bf6 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java @@ -117,9 +117,12 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder encKeyMap.put(el.getKey(), new X509Certificate(Base64Utils.decode(el.getValue(), false))); Logger.info("Load foreign bPK encryption certificate for sector: " + el.getKey()); - } catch (Exception e) { - Logger.warn("Can NOT load foreign bPK encryption certificate for sector: \" + el.getKey()", e); - + } catch (Exception e) { + if (Logger.isDebugEnabled()) + Logger.warn("Can NOT load foreign bPK encryption certificate for sector: " + el.getKey(), e); + else + Logger.info("Can NOT load foreign bPK encryption certificate for sector: " + el.getKey()); + } } |