[java-idp-plugin-vci] branch dev/W3CCred updated: Remove hardcoded 'name' and 'description' claims. Assume 'credentialSubject' is not set to path in input. This allows using same attribute configuration to other formats
Codeberg
noreply at shibboleth.net
Fri Jan 9 12:51:11 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch dev/W3CCred
in repository java-idp-plugin-vci.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-vci/commit/e5c158807edf864d8faa60678eb7d21c325b896e
The following commit(s) were added to refs/heads/dev/W3CCred by this push:
new e5c1588 Remove hardcoded 'name' and 'description' claims. Assume 'credentialSubject' is not set to path in input. This allows using same attribute configuration to other formats
e5c1588 is described below
commit e5c158807edf864d8faa60678eb7d21c325b896e
Author: jlauros <janne.lauros at csc.fi>
AuthorDate: Fri Jan 9 14:51:01 2026 +0200
Remove hardcoded 'name' and 'description' claims. Assume 'credentialSubject' is not set to path in input. This allows using same attribute configuration to other formats
---
.../profile/impl/FormJsonLdSelectiveDisclosureJWTCredential.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/FormJsonLdSelectiveDisclosureJWTCredential.java b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/FormJsonLdSelectiveDisclosureJWTCredential.java
index a8efc22..7be8479 100644
--- a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/FormJsonLdSelectiveDisclosureJWTCredential.java
+++ b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/FormJsonLdSelectiveDisclosureJWTCredential.java
@@ -108,7 +108,7 @@ public class FormJsonLdSelectiveDisclosureJWTCredential extends AbstractProfileA
Map<String, Object> credentialSubject = new HashMap<>();
for (CredentialOfferRequestedClaim claim : credential.getRequestedCredential()) {
Map<String, Object> map = credentialSubject;
- for (int i = 1; i < claim.getPath().size() - 1; i++) {
+ for (int i = 0; i < claim.getPath().size() - 1; i++) {
if (!map.containsKey(claim.getPath().get(i))) {
map.put(claim.getPath().get(i), new HashMap<String, Object>());
}
@@ -119,8 +119,6 @@ public class FormJsonLdSelectiveDisclosureJWTCredential extends AbstractProfileA
SelectiveDisclosureClaimSetUtil sdActClaims = new SelectiveDisclosureClaimSetUtil(mapClaim);
Map<String, Object> item = new HashMap<>();
item.put("_sd", sdActClaims.get_sd());
- item.put("name", "get from configurarion");
- item.put("description", "get from configurarion");
map.put(claim.getPath().get(claim.getPath().size() - 1), item);
disclosures = (disclosures == null ? sdActClaims.getFormattedDisclosures()
: disclosures + "~" + sdActClaims.getFormattedDisclosures());
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list