We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e5c095 + 154e75c commit b73cd1cCopy full SHA for b73cd1c
1 file changed
starter-kit/src/main/java/it/spid/cie/oidc/helper/JWTHelper.java
@@ -21,8 +21,7 @@
21
import java.security.PrivateKey;
22
import java.security.interfaces.RSAPublicKey;
23
import java.text.ParseException;
24
-import java.time.LocalDateTime;
25
-import java.time.ZoneOffset;
+import java.time.Instant;
26
27
import org.json.JSONArray;
28
import org.json.JSONObject;
@@ -165,7 +164,7 @@ public static JWK getFirstJWK(JWKSet jwkSet) throws OIDCException {
165
164
* @return current UTC date time as epoch seconds
166
*/
167
public static long getIssuedAt() {
168
- return LocalDateTime.now().toEpochSecond(ZoneOffset.UTC);
+ return Instant.now().getEpochSecond();
169
}
170
171
/**
0 commit comments