aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at/gv
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-04-17 17:23:38 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-04-17 17:23:38 +0200
commit5d398941deba98bac5ed119b511fc809634ae6ff (patch)
treecee2fb4b2421226f2854b333679ce6bf2b6661e1 /id/server/idserverlib/src/main/java/at/gv
parent5ac7c031b38bd652e984ad58285b1cb4af4c5e1f (diff)
downloadmoa-id-spss-5d398941deba98bac5ed119b511fc809634ae6ff.tar.gz
moa-id-spss-5d398941deba98bac5ed119b511fc809634ae6ff.tar.bz2
moa-id-spss-5d398941deba98bac5ed119b511fc809634ae6ff.zip
update get() Methode
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AssertionStorage.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AssertionStorage.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AssertionStorage.java
index cca13fad9..bc9de7a50 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AssertionStorage.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AssertionStorage.java
@@ -94,9 +94,16 @@ public class AssertionStorage {
* @throws AuthenticationException
*/
public <T> T get(String samlArtifact,
- final Class<T> clazz) throws MOADatabaseException, AuthenticationException {
+ final Class<T> clazz) throws MOADatabaseException {
- return get(samlArtifact, clazz, -1);
+ try {
+ return get(samlArtifact, clazz, -1);
+
+ } catch (AuthenticationException e) {
+ //this execption only occurs if an additional timeOut is used
+ Logger.error("This exeption should not occur!!!!", e);
+ return null;
+ }
}
public <T> T get(String artifact, final Class<T> clazz, long authdatatimeout) throws MOADatabaseException, AuthenticationException {