diff options
Diffstat (limited to 'eaaf_core_api')
4 files changed, 48 insertions, 5 deletions
| 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 6580fa30..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 @@ -19,17 +19,16 @@  package at.gv.egiz.eaaf.core.api.idp.auth.services; -import java.io.IOException; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -  import at.gv.egiz.eaaf.core.api.IRequest;  import at.gv.egiz.eaaf.core.api.logging.IStatisticLogger;  import at.gv.egiz.eaaf.core.exceptions.EaafException;  import at.gv.egiz.eaaf.core.exceptions.GuiBuildException;  import at.gv.egiz.eaaf.core.impl.data.Pair; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; +  public interface IProtocolAuthenticationService {    String PARAM_GUI_ERROMSG = "errorMsg"; @@ -37,6 +36,9 @@ 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"; +    /**     * Initialize an authentication process for this protocol request. | 
