From 6162ed3e70d42f5fb533edb703edbbc33cdf3e1a Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 29 Jan 2018 23:53:18 +0100 Subject: switch BASE64-encoder implementation to prohibit newLines in BASE64 string --- .../moa/id/protocols/builder/attributes/EIDSignerCertificate.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/EIDSignerCertificate.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/EIDSignerCertificate.java index 1172d3cec..0bc110355 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/EIDSignerCertificate.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/EIDSignerCertificate.java @@ -45,11 +45,12 @@ public class EIDSignerCertificate implements IPVPAttributeBuilder { try { byte[] signerCertificate = authData.getSignerCertificate(); if (signerCertificate != null) { - return g.buildStringAttribute(EID_SIGNER_CERTIFICATE_FRIENDLY_NAME, EID_SIGNER_CERTIFICATE_NAME, Base64Utils - .encode(signerCertificate)); + return g.buildStringAttribute(EID_SIGNER_CERTIFICATE_FRIENDLY_NAME, EID_SIGNER_CERTIFICATE_NAME, + //Base64Utils.encode(signerCertificate)); + org.springframework.util.Base64Utils.encodeToString(signerCertificate)); } - }catch (IOException e) { + }catch (Exception e) { Logger.info("Signer certificate BASE64 encoding error"); } -- cgit v1.2.3