diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-05-11 13:50:37 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2016-05-11 13:50:37 +0200 |
commit | 33eeca29987b49448d9fa95a8ffd2306ff4ce783 (patch) | |
tree | 303e5236f6095eafd651684e074aebd05276b83c /id/server/idserverlib | |
parent | f2846011fd01404e4419cbe92daeb57b8422b33e (diff) | |
download | moa-id-spss-33eeca29987b49448d9fa95a8ffd2306ff4ce783.tar.gz moa-id-spss-33eeca29987b49448d9fa95a8ffd2306ff4ce783.tar.bz2 moa-id-spss-33eeca29987b49448d9fa95a8ffd2306ff4ce783.zip |
fix a minor flaw in prof. rep. textual OID description
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/MandateProfRepDescAttributeBuilder.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/MandateProfRepDescAttributeBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/MandateProfRepDescAttributeBuilder.java index b4eed85d0..a611c72b9 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/MandateProfRepDescAttributeBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/builder/attributes/MandateProfRepDescAttributeBuilder.java @@ -53,7 +53,10 @@ public class MandateProfRepDescAttributeBuilder implements IPVPAttributeBuilder profRepName = misMandate.getTextualDescriptionOfOID(); - if (MiscUtil.isEmpty(profRepName)) { + //only read textual prof. rep. OID describtion from mandate annotation + // if also OID exists + if (MiscUtil.isEmpty(profRepName) + && MiscUtil.isNotEmpty(misMandate.getProfRep())) { Element mandate = authData.getMandate(); if (mandate == null) { throw new NoMandateDataAttributeException(); |