From 7864448fd040b26b5921cfc63afa68ef2cb90c03 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Fri, 12 Mar 2021 15:43:57 +0100 Subject: refactor some code to Java Stream API --- .../core/api/idp/auth/data/IAuthProcessDataContainer.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'eaaf_core_api/src/main/java/at') 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 getGenericSessionDataStorage(); + + /** + * Get all generic data from session as {@link Stream} of {@link Entry} elements. + * + * @return {@link Stream} of generic data + */ + Stream> getGenericSessionDataStream(); + /** * Returns a generic session-data object with is stored with a specific * identifier. -- cgit v1.2.3