aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-06-17 14:21:16 +0200
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-06-17 14:21:16 +0200
commit62636b77e84b881a7ea365c1868966935eaeff97 (patch)
treecfdae29083baa4108a2c572a7a3ae4944c2d2f00 /id/server/idserverlib/src
parente9f365ecbbdf20a67e81179780121f3f922a87c6 (diff)
downloadmoa-id-spss-62636b77e84b881a7ea365c1868966935eaeff97.tar.gz
moa-id-spss-62636b77e84b881a7ea365c1868966935eaeff97.tar.bz2
moa-id-spss-62636b77e84b881a7ea365c1868966935eaeff97.zip
fixed QAA level out of range error
Diffstat (limited to 'id/server/idserverlib/src')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java
index f6360f4cf..cd3191755 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java
@@ -409,10 +409,11 @@ public Map<String, String> getFormCustomizaten() {
*/
@Override
public Integer getQaaLevel() {
-
- if (oa_auth.getOASTORK() != null && oa_auth.getOASTORK().getQaa() != null)
+ if (oa_auth.getOASTORK() != null &&
+ oa_auth.getOASTORK().getQaa() != null &&
+ oa_auth.getOASTORK().getQaa() >= 1 &&
+ oa_auth.getOASTORK().getQaa() <= 4)
return oa_auth.getOASTORK().getQaa();
-
else
return 4;
}