summaryrefslogtreecommitdiff
path: root/eaaf_core_api/src/main
diff options
context:
space:
mode:
authorThomas <>2022-01-19 14:00:06 +0100
committerThomas <>2022-01-19 14:00:06 +0100
commit122245400a8cbf72f65a206592eb15f70826ace9 (patch)
treedc2126cc95a3afb61771bc3c8b58337377d5652f /eaaf_core_api/src/main
parent4932d6e3ef8b2347ecb0c66d5b8206fcfa54d77d (diff)
downloadEAAF-Components-122245400a8cbf72f65a206592eb15f70826ace9.tar.gz
EAAF-Components-122245400a8cbf72f65a206592eb15f70826ace9.tar.bz2
EAAF-Components-122245400a8cbf72f65a206592eb15f70826ace9.zip
refactor(core): change API parameters from 'Date' to 'Instant'
Diffstat (limited to 'eaaf_core_api/src/main')
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java6
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java5
2 files changed, 6 insertions, 5 deletions
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.