Skip to content

Commit

Permalink
feat: status list VC type set to StatusList2021
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-vavdiya committed Sep 5, 2024
1 parent 234a7a0 commit 4429211
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
@Getter
@Builder()
public class StatusListCredentialSubject {
public static final String TYPE_ENTRY = "BitstringStatusListEntry";
public static final String TYPE_CREDENTIAL = "BitstringStatusListCredential";
public static final String TYPE_LIST = "BitstringStatusList";
public static final String TYPE_ENTRY = "StatusList2021Entry";
public static final String TYPE_CREDENTIAL = "StatusList2021";
public static final String TYPE_LIST = "StatusList2021Credential";

public static final String SUBJECT_ID = "id";
public static final String SUBJECT_TYPE = "type";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
package org.eclipse.tractusx.managedidentitywallets.revocation.services;

import lombok.RequiredArgsConstructor;
import org.eclipse.tractusx.managedidentitywallets.commons.constant.StringPool;
import org.eclipse.tractusx.managedidentitywallets.revocation.config.security.SecurityConfigProperties;
import org.eclipse.tractusx.managedidentitywallets.revocation.dto.TokenResponse;
import org.eclipse.tractusx.ssi.lib.model.verifiable.credential.VerifiableCredential;
Expand Down Expand Up @@ -72,7 +73,7 @@ public VerifiableCredential signStatusListVC(VerifiableCredential vc, String tok
String uri =
UriComponentsBuilder.fromHttpUrl(miwUrl)
.path("/api/credentials")
.queryParam("isRevocable", "false")
.queryParam(StringPool.REVOCABLE, "false")
.build()
.toUriString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private StatusListCredential createStatusListCredential(
VerifiableCredential statusListVC;
StatusListCredentialSubject subject;
types.add(VerifiableCredentialType.VERIFIABLE_CREDENTIAL);
types.add(StatusListCredentialSubject.TYPE_CREDENTIAL);
types.add(StatusListCredentialSubject.TYPE_LIST);

bpn = extractBpnFromDid(dto.issuerId());
id =
Expand All @@ -317,7 +317,7 @@ private StatusListCredential createStatusListCredential(
StatusListCredentialSubject.builder()
.id(id)
.statusPurpose(dto.purpose().toLowerCase())
.type(StatusListCredentialSubject.TYPE_LIST)
.type(StatusListCredentialSubject.TYPE_CREDENTIAL)
.encodedList(BitSetManager.initializeEncodedListString())
.build();

Expand Down

0 comments on commit 4429211

Please sign in to comment.