aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-03-07 10:22:41 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-03-07 10:22:41 +0100
commitdc242cc927974270476c9c836ea7fe07c0a2a43e (patch)
tree51c84f88baf0146619ca8c1f778abed90f4d1d51 /id/server
parent2b13590261375b56c272945b159d67986162be77 (diff)
downloadmoa-id-spss-dc242cc927974270476c9c836ea7fe07c0a2a43e.tar.gz
moa-id-spss-dc242cc927974270476c9c836ea7fe07c0a2a43e.tar.bz2
moa-id-spss-dc242cc927974270476c9c836ea7fe07c0a2a43e.zip
set no NameQualifier in element subjectNameID if transient NameIDFormat is used
Diffstat (limited to 'id/server')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java
index e834797b1..1454ee297 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/assertion/PVP2AssertionBuilder.java
@@ -327,6 +327,7 @@ public class PVP2AssertionBuilder implements PVPConstants {
MessageDigest md = MessageDigest.getInstance("SHA-1");
byte[] hash = md.digest((nameID + random).getBytes("ISO-8859-1"));
subjectNameID.setValue(Base64Utils.encode(hash));
+ subjectNameID.setNameQualifier(null);
subjectNameID.setFormat(NameID.TRANSIENT);
} catch (Exception e) {