summaryrefslogtreecommitdiff
path: root/eaaf_core_api
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core_api')
-rw-r--r--eaaf_core_api/pom.xml2
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EaafConstants.java16
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/PvpAttributeDefinitions.java1
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java15
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IEidAuthProcessData.java25
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java2
6 files changed, 60 insertions, 1 deletions
diff --git a/eaaf_core_api/pom.xml b/eaaf_core_api/pom.xml
index 8791c5a9..7ee6cac5 100644
--- a/eaaf_core_api/pom.xml
+++ b/eaaf_core_api/pom.xml
@@ -7,7 +7,7 @@
<parent>
<groupId>at.gv.egiz</groupId>
<artifactId>eaaf</artifactId>
- <version>1.1.12-SNAPSHOT</version>
+ <version>1.1.13-SNAPSHOT</version>
</parent>
<groupId>at.gv.egiz.eaaf</groupId>
<artifactId>eaaf_core_api</artifactId>
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EaafConstants.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EaafConstants.java
index 1bbfe1b7..82749b81 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EaafConstants.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EaafConstants.java
@@ -27,6 +27,22 @@ public class EaafConstants {
public static final String CONTENTTYPE_HTML_UTF8 = "text/html; charset=UTF-8";
+ // common http end-point prefixes
+ /**
+ * Public end-points without any access restriction.
+ */
+ public static final String ENDPOINT_PREFIX_PUBLIC = "/public";
+
+ /**
+ * Public end-points with access restriction, like AccessToken, PendingRequestIds, ...
+ */
+ public static final String ENDPOINT_PREFIX_SECURED = "/public/secure";
+
+ /**
+ * Non public end-points that allow restriction on network level.
+ */
+ public static final String ENDPOINT_PREFIX_RESTRICTED = "/restricted";
+
// http request parameters for process management
public static final String PARAM_HTTP_TARGET_PENDINGREQUESTID = "pendingid";
public static final String PARAM_HTTP_ERROR_CODE = "errorid";
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/PvpAttributeDefinitions.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/PvpAttributeDefinitions.java
index 793715f1..890f5ccc 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/PvpAttributeDefinitions.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/PvpAttributeDefinitions.java
@@ -63,6 +63,7 @@ public interface PvpAttributeDefinitions {
String BPK_FRIENDLY_NAME = "BPK";
int BPK_MAX_LENGTH = 1024;
String BPK_R_PROFILE21_HEADER = "X-PVP-BPK";
+ String DELIMITER_BPKTYPE_BPK = ":";
String BPK_LIST_OID = "1.2.40.0.10.2.1.1.261.28";
String BPK_LIST_NAME = URN_OID_PREFIX + BPK_LIST_OID;
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.
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IEidAuthProcessData.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IEidAuthProcessData.java
new file mode 100644
index 00000000..36298824
--- /dev/null
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IEidAuthProcessData.java
@@ -0,0 +1,25 @@
+package at.gv.egiz.eaaf.core.api.idp.auth.data;
+
+/**
+ * Authentication session-data that adds ID Austria specific information.
+ *
+ * @author tlenz
+ *
+ */
+public interface IEidAuthProcessData extends IAuthProcessDataContainer {
+
+ /**
+ * Flag that indicates if user is a test-identity.
+ *
+ * @return <code>true</code> if user is a test-identity, otherwise <code>false</code>
+ */
+ boolean isTestIdentity();
+
+
+ /**
+ * Set test-identity flag for this user.
+ *
+ * @param flag <code>true</code> if user is a test-identity
+ */
+ void setTestIdentity(boolean flag);
+}
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java
index ad48e8ee..f110d50e 100644
--- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java
+++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java
@@ -36,6 +36,8 @@ public interface IProtocolAuthenticationService {
String PARAM_GUI_EXTERNAL_ERRORCODE = "extErrorCode";
String PARAM_GUI_ERRORCODEPARAMS = "errorParams";
String PARAM_GUI_ERRORSTACKTRACE = "stacktrace";
+ String PARAM_GUI_TICKET = "supportTicket";
+ String PARAM_GUI_REDIRECT = "redirectLink";
/**