aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2013-09-13 07:37:38 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2013-09-13 07:37:38 +0200
commit466342e91b92a68f9738937dbfdeff5348a2b730 (patch)
tree13b0f9e4a068d5e1e21530620f00c8daf1e4b250
parentdfd1a56545a4099ae1a38fb51d62058b0e252135 (diff)
downloadmoa-id-spss-466342e91b92a68f9738937dbfdeff5348a2b730.tar.gz
moa-id-spss-466342e91b92a68f9738937dbfdeff5348a2b730.tar.bz2
moa-id-spss-466342e91b92a68f9738937dbfdeff5348a2b730.zip
Mandate has to be BASE64 encoded
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/attributes/MandateFullMandateAttributeBuilder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/attributes/MandateFullMandateAttributeBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/attributes/MandateFullMandateAttributeBuilder.java
index cecd90448..0afd71bc1 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/attributes/MandateFullMandateAttributeBuilder.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/attributes/MandateFullMandateAttributeBuilder.java
@@ -11,6 +11,7 @@ import at.gv.egovernment.moa.id.config.auth.OAAuthParameter;
import at.gv.egovernment.moa.id.data.AuthenticationData;
import at.gv.egovernment.moa.id.protocols.pvp2x.exceptions.PVP2Exception;
import at.gv.egovernment.moa.logging.Logger;
+import at.gv.egovernment.moa.util.Base64Utils;
import at.gv.egovernment.moa.util.DOMUtils;
public class MandateFullMandateAttributeBuilder extends BaseAttributeBuilder {
@@ -29,7 +30,7 @@ public class MandateFullMandateAttributeBuilder extends BaseAttributeBuilder {
fullMandate = DOMUtils.serializeNode(authSession
.getMandate());
return buildStringAttribute(MANDATE_FULL_MANDATE_FRIENDLY_NAME,
- MANDATE_FULL_MANDATE_NAME, fullMandate);
+ MANDATE_FULL_MANDATE_NAME, Base64Utils.encode(fullMandate.getBytes()));
} catch (TransformerException e) {
Logger.error("Failed to generate Full Mandate", e);
} catch (IOException e) {