diff options
author | Thomas <> | 2022-05-18 08:34:18 +0200 |
---|---|---|
committer | Thomas <> | 2022-05-18 08:34:18 +0200 |
commit | e35b0803da1183a4318cbc6fb46ca242c9199aed (patch) | |
tree | 2bb8699e7f7a19876cb632cf7419b37076188297 /modules/core_common_webapp | |
parent | 7c64f41a8de58dab83a29d5f9c7ebd29d9af4cd1 (diff) | |
download | National_eIDAS_Gateway-e35b0803da1183a4318cbc6fb46ca242c9199aed.tar.gz National_eIDAS_Gateway-e35b0803da1183a4318cbc6fb46ca242c9199aed.tar.bz2 National_eIDAS_Gateway-e35b0803da1183a4318cbc6fb46ca242c9199aed.zip |
chore(core): switch to EAAF-Components 1.3.2
Diffstat (limited to 'modules/core_common_webapp')
-rw-r--r-- | modules/core_common_webapp/src/main/java/at/asitplus/eidas/specific/core/builder/AuthenticationDataBuilder.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/core_common_webapp/src/main/java/at/asitplus/eidas/specific/core/builder/AuthenticationDataBuilder.java b/modules/core_common_webapp/src/main/java/at/asitplus/eidas/specific/core/builder/AuthenticationDataBuilder.java index 9580a62f..181d5735 100644 --- a/modules/core_common_webapp/src/main/java/at/asitplus/eidas/specific/core/builder/AuthenticationDataBuilder.java +++ b/modules/core_common_webapp/src/main/java/at/asitplus/eidas/specific/core/builder/AuthenticationDataBuilder.java @@ -23,7 +23,7 @@ package at.asitplus.eidas.specific.core.builder; -import java.util.Date; +import java.time.Instant; import org.springframework.stereotype.Service; @@ -58,7 +58,8 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder // set specific informations authData.setSsoSessionValidTo( - new Date(new Date().getTime() + MsEidasNodeConstants.DEFAULT_PVP_ASSERTION_VALIDITY * 60 * 1000)); + Instant.now().plusSeconds(MsEidasNodeConstants.DEFAULT_PVP_ASSERTION_VALIDITY * 60)); + authData.setEidStatus(authProcessData.isTestIdentity() ? EidIdentityStatusLevelValues.TESTIDENTITY : EidIdentityStatusLevelValues.IDENTITY); @@ -78,7 +79,7 @@ public class AuthenticationDataBuilder extends AbstractAuthenticationDataBuilder // set specific informations ((EidAuthenticationData)authData).setSsoSessionValidTo( - new Date(new Date().getTime() + MsEidasNodeConstants.DEFAULT_PVP_ASSERTION_VALIDITY * 60 * 1000)); + Instant.now().plusSeconds(MsEidasNodeConstants.DEFAULT_PVP_ASSERTION_VALIDITY * 60)); //set E-ID status-level final EidAuthProcessDataWrapper authProcessData = |