From d7bc2f7593271c128032916456bc36ca70dd25d6 Mon Sep 17 00:00:00 2001 From: Bas Huisman Date: Thu, 28 Nov 2024 10:00:12 +0100 Subject: [PATCH] use epoch in Token --- src/main/java/nl/ictu/Token.java | 2 +- src/main/java/nl/ictu/controller/v1/GetToken.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/nl/ictu/Token.java b/src/main/java/nl/ictu/Token.java index 314622f..1dec8b6 100644 --- a/src/main/java/nl/ictu/Token.java +++ b/src/main/java/nl/ictu/Token.java @@ -14,6 +14,6 @@ public final class Token { private String version = "v1"; private String bsn; private String recipientOIN; - private LocalDateTime creationDate; + private Long creationDate; } diff --git a/src/main/java/nl/ictu/controller/v1/GetToken.java b/src/main/java/nl/ictu/controller/v1/GetToken.java index 9ed9509..496d6b3 100644 --- a/src/main/java/nl/ictu/controller/v1/GetToken.java +++ b/src/main/java/nl/ictu/controller/v1/GetToken.java @@ -32,7 +32,7 @@ public ResponseEntity getToken(final String callerOIN, fi final Token token = new Token(); - token.setCreationDate(LocalDateTime.now()); + token.setCreationDate(System.currentTimeMillis()); token.setRecipientOIN(wsGetTokenRequest.getRecipientOIN()); if (wsGetTokenRequest.getIdentifier() != null) {