diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-02-08 16:57:45 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-02-08 16:57:45 +0100 |
commit | d6f9f64e29d986df48f3c7d8a1bb9df4cb5f7095 (patch) | |
tree | a042fd7a5f84a6530e2b9aeb40a1d4dcea98c145 /id/ConfigWebTool/src/main/java/at/gv | |
parent | a2caf29a1bf69140ef97bc738875fdbad97bf8a2 (diff) | |
download | moa-id-spss-d6f9f64e29d986df48f3c7d8a1bb9df4cb5f7095.tar.gz moa-id-spss-d6f9f64e29d986df48f3c7d8a1bb9df4cb5f7095.tar.bz2 moa-id-spss-d6f9f64e29d986df48f3c7d8a1bb9df4cb5f7095.zip |
add additional validation of eIDAS country target for bPK calculation
Diffstat (limited to 'id/ConfigWebTool/src/main/java/at/gv')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OATargetConfigValidation.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OATargetConfigValidation.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OATargetConfigValidation.java index 650553ab3..9cb3ce700 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OATargetConfigValidation.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OATargetConfigValidation.java @@ -74,6 +74,15 @@ public class OATargetConfigValidation { log.info("Not valid CompanyNumber"); errors.add(LanguageHelper.getErrorString("validation.general.identificationnumber.fn.valid", request)); } + + } else if (form.getIdentificationType().equals(Constants.IDENIFICATIONTYPE_EIDAS)) { + String[] test = check.split("\\+"); + if (test.length < 2) { + log.info("Not valid eIDAS Target"); + errors.add(LanguageHelper.getErrorString("validation.general.identificationnumber.eidas.valid", request)); + + } + } } |