diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-18 12:48:33 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-18 12:48:33 +0200 |
commit | 7ae642ec1857d0c796ba21ffcd6b5466285c92af (patch) | |
tree | d61c207651989e8cb2033a9a542c30cfff82a7c1 /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage | |
parent | a184de09bda4327441c214aa84d77e57500b28ca (diff) | |
download | moa-id-spss-7ae642ec1857d0c796ba21ffcd6b5466285c92af.tar.gz moa-id-spss-7ae642ec1857d0c796ba21ffcd6b5466285c92af.tar.bz2 moa-id-spss-7ae642ec1857d0c796ba21ffcd6b5466285c92af.zip |
create methodes to parse interfederated assertions into authData
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java index 69167c75d..e18d9786d 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java @@ -154,6 +154,26 @@ public class AuthenticationSessionStoreage { return id; } + public static void setInterfederationAttributCollectorUsed(AuthenticationSession session, String idpID) throws MOADatabaseException { + AuthenticatedSessionStore dbsession = searchInDatabase(session.getSessionID()); + List<InterfederationSessionStore> idpList = dbsession.getInderfederation(); + for (InterfederationSessionStore idp : idpList) { + if (idp.getIdpurlprefix().endsWith(idpID)) + idp.setAttributesRequested(true); + } + + //store AssertionStore element to Database + try { + MOASessionDBUtils.saveOrUpdate(dbsession); + Logger.info("MOASession with sessionID=" + session.getSessionID() + + " is stored in Database"); + + } catch (MOADatabaseException e) { + Logger.warn("MOASession could not stored.",e); + throw e; + } + } + public static void storeSession(AuthenticationSession session) throws MOADatabaseException, BuildException { |