From 122245400a8cbf72f65a206592eb15f70826ace9 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 19 Jan 2022 14:00:06 +0100 Subject: refactor(core): change API parameters from 'Date' to 'Instant' --- .../src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java | 6 +++--- .../egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (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/IAuthData.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java index f76e8d76..9c550819 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java @@ -19,7 +19,7 @@ package at.gv.egiz.eaaf.core.api.idp; -import java.util.Date; +import java.time.Instant; import at.gv.egiz.eaaf.core.api.idp.auth.data.IIdentityLink; @@ -51,7 +51,7 @@ public interface IAuthData { * * @return */ - Date getAuthenticationIssueInstant(); + Instant getAuthenticationIssueInstant(); /** * Get string formated timestamp of the authentication process. @@ -142,7 +142,7 @@ public interface IAuthData { * * @return */ - Date getSsoSessionValidTo(); + Instant getSsoSessionValidTo(); /** * SessionIndex, if it was an reauthentication on a service provider by using 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 cb9adbc8..ac235a8c 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 @@ -19,6 +19,7 @@ package at.gv.egiz.eaaf.core.api.idp.auth.data; +import java.time.Instant; import java.util.Date; import java.util.Map; import java.util.Map.Entry; @@ -33,7 +34,7 @@ public interface IAuthProcessDataContainer { * * @return The issuing time of the AUTH-Block SAML assertion. */ - Date getIssueInstant(); + Instant getIssueInstant(); /** * Returns the issuing time of the AUTH-Block SAML assertion. @@ -58,7 +59,7 @@ public interface IAuthProcessDataContainer { * * @param issueInstant The issueInstant to set. */ - void setIssueInstant(Date issueInstant); + void setIssueInstant(Instant issueInstant); /** * Indicate if the authentication process is finished. -- cgit v1.2.3