From 76e941d36ff3e884adecae5ccfb8bd26e16dbf13 Mon Sep 17 00:00:00 2001 From: "harald.bratko" Date: Fri, 17 Feb 2006 17:07:34 +0000 Subject: BugFix: wenn Option "provideStammzahl" auf "false" gesetzt ist, muss die Stammzahl auch in der Personenbindung ausgeblendet sein. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@623 d688527b-c9ab-4aba-bd8d-4036d912da1d --- id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'id.server/src/at/gv/egovernment/moa/id') diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java b/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java index f25982c63..8c566683f 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java @@ -66,6 +66,7 @@ import at.gv.egovernment.moa.util.DOMUtils; import at.gv.egovernment.moa.util.DateTimeUtils; import at.gv.egovernment.moa.util.FileUtils; import at.gv.egovernment.moa.util.OutputXML2File; +import at.gv.egovernment.moa.util.StringUtils; /** * API for MOA ID Authentication Service.
@@ -609,6 +610,9 @@ public class AuthenticationServer implements MOAIDAuthConstants { oaParam.getProvideIdentityLink() ? identityLink.getSerializedSamlAssertion() : ""; + if (!oaParam.getProvideStammzahl()) { + ilAssertion = StringUtils.replaceAll(ilAssertion, identityLink.getIdentificationValue(), ""); + } String authBlock = oaParam.getProvideAuthBlock() ? session.getAuthBlock() : ""; String samlAssertion = new AuthenticationDataAssertionBuilder().build(authData, -- cgit v1.2.3