aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2018-01-29 23:53:18 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2018-01-29 23:53:18 +0100
commit6162ed3e70d42f5fb533edb703edbbc33cdf3e1a (patch)
tree14678521c91212e64894a4bb6b73143bfc84be95 /id/server/idserverlib/src/main/java
parent731ab39b8ef05a4e84b72fb4243d59c9f6dd48cb (diff)
downloadmoa-id-spss-6162ed3e70d42f5fb533edb703edbbc33cdf3e1a.tar.gz
moa-id-spss-6162ed3e70d42f5fb533edb703edbbc33cdf3e1a.tar.bz2
moa-id-spss-6162ed3e70d42f5fb533edb703edbbc33cdf3e1a.zip
switch BASE64-encoder implementation to prohibit newLines in BASE64 string
Diffstat (limited to 'id/server/idserverlib/src/main/java')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/EIDSignerCertificate.java7
1 files 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");
}