[java-idp-plugin-vci] branch dev/VCDM updated: iat and exp claims to both type of credentials
Codeberg
noreply at shibboleth.net
Wed May 13 15:15:53 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch dev/VCDM
in repository java-idp-plugin-vci.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-vci/commit/b8a4eb211b30fcd4d3201bc61d4e84f5905cae82
The following commit(s) were added to refs/heads/dev/VCDM by this push:
new b8a4eb2 iat and exp claims to both type of credentials
b8a4eb2 is described below
commit b8a4eb211b30fcd4d3201bc61d4e84f5905cae82
Author: Janne Lauros <janne.lauros at csc.fi>
AuthorDate: Wed May 13 18:15:28 2026 +0300
iat and exp claims to both type of credentials
---
.../shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java
index 6351c82..25bfc78 100644
--- a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java
+++ b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/AddCredentialShell.java
@@ -241,9 +241,9 @@ public class AddCredentialShell extends AbstractProfileAction {
shell.setIssuer(new Issuer(issuerId));
ZonedDateTime now = ZonedDateTime.now();
+ shell.setClaim("iat", now.toEpochSecond());
+ shell.setClaim("exp", now.toEpochSecond() + expiration.toSeconds());
if ("dc+sd-jwt".equals(ctx.getCredentialConfiguration().getFormat())) {
- shell.setClaim("iat", now.toEpochSecond());
- shell.setClaim("exp", now.toEpochSecond() + expiration.toSeconds());
shell.setClaim("vct", ctx.getCredentialIdentifier());
}
if ("vc+sd-jwt".equals(ctx.getCredentialConfiguration().getFormat())) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list