summaryrefslogtreecommitdiff
path: root/eaaf_core_api/src
diff options
context:
space:
mode:
authorThomas <>2021-03-12 15:43:57 +0100
committerThomas <>2021-03-12 15:43:57 +0100
commit7864448fd040b26b5921cfc63afa68ef2cb90c03 (patch)
treec2fdb77b4d3cbf02af1da0892ad1143983f3c3fa /eaaf_core_api/src
parent391bc8546bf5bc9a6396378ebec50a7e35031adc (diff)
downloadEAAF-Components-7864448fd040b26b5921cfc63afa68ef2cb90c03.tar.gz
EAAF-Components-7864448fd040b26b5921cfc63afa68ef2cb90c03.tar.bz2
EAAF-Components-7864448fd040b26b5921cfc63afa68ef2cb90c03.zip
refactor some code to Java Stream API
Diffstat (limited to 'eaaf_core_api/src')
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java
index 274f3f7f..cb9adbc8 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java
@@ -21,6 +21,8 @@ package at.gv.egiz.eaaf.core.api.idp.auth.data;
import java.util.Date;
import java.util.Map;
+import java.util.Map.Entry;
+import java.util.stream.Stream;
import at.gv.egiz.eaaf.core.exceptions.EaafStorageException;
@@ -167,8 +169,21 @@ public interface IAuthProcessDataContainer {
*/
Date getSessionCreated();
+ /**
+ * Get all generic data from session.
+ *
+ * @return {@link Map} of generic data in key/value format
+ */
Map<String, Object> getGenericSessionDataStorage();
+
+ /**
+ * Get all generic data from session as {@link Stream} of {@link Entry} elements.
+ *
+ * @return {@link Stream} of generic data
+ */
+ Stream<Entry<String, Object>> getGenericSessionDataStream();
+
/**
* Returns a generic session-data object with is stored with a specific
* identifier.