aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
Diffstat (limited to 'id')
-rw-r--r--id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/ServicesProtocolSTORKTask.java27
1 files changed, 17 insertions, 10 deletions
diff --git a/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/ServicesProtocolSTORKTask.java b/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/ServicesProtocolSTORKTask.java
index d4e80bed9..c7a74d1a1 100644
--- a/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/ServicesProtocolSTORKTask.java
+++ b/id/moa-id-webgui/src/main/java/at/gv/egovernment/moa/id/config/webgui/validation/task/impl/ServicesProtocolSTORKTask.java
@@ -171,18 +171,25 @@ public class ServicesProtocolSTORKTask extends AbstractTaskValidator implements
throws ConfigurationTaskValidationException {
List<ValidationObjectIdentifier> errors = new ArrayList<ValidationObjectIdentifier>();
- //check V-IDP specific Target configurations
- String isBusinessService = input.get(MOAIDConfigurationConstants.SERVICE_BUSINESSSERVICE);
- if (!Boolean.parseBoolean(isBusinessService)) {
- log.info("STORK V-IDP only allowed as business Service.");
- errors.add(new ValidationObjectIdentifier(
- MOAIDConfigurationConstants.SERVICE_BUSINESSSERVICE,
- "BusinessService",
- "STORK V-IDP only allowed as business Service."));
- }
+ //TODO: add in further version
+ //STORK MIS attribute provider requires PublicService Target and therefore VIDP config is actually used.
+
+// //check V-IDP specific Target configurations
+// String isBusinessService = input.get(MOAIDConfigurationConstants.SERVICE_BUSINESSSERVICE);
+// if (!Boolean.parseBoolean(isBusinessService)) {
+// log.info("STORK V-IDP only allowed as business Service.");
+// errors.add(new ValidationObjectIdentifier(
+// MOAIDConfigurationConstants.SERVICE_BUSINESSSERVICE,
+// "BusinessService",
+// "STORK V-IDP only allowed as business Service."));
+// }
String identificationType = input.get(MOAIDConfigurationConstants.SERVICE_AUTH_TARGET_BUSINESS_TYPE);
- if (MiscUtil.isEmpty(identificationType) ||
+ //TODO: add in further version
+ //STORK MIS attribute provider requires PublicService Target and therefore VIDP config is actually used.
+// if (MiscUtil.isEmpty(identificationType) ||
+// !MOAIDConfigurationConstants.IDENIFICATIONTYPE_STORK.equals(identificationType)) {
+ if (MiscUtil.isNotEmpty(identificationType) &&
!MOAIDConfigurationConstants.IDENIFICATIONTYPE_STORK.equals(identificationType)) {
log.info("STORK V-IDP only allowes identification numbers with STORK prefix.");
errors.add(new ValidationObjectIdentifier(