Skip to content

Commit

Permalink
feat(trustlist-v2): use lowercase alpha 3 countrycode for participants
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Egenolf committed May 10, 2024
1 parent fdc1be8 commit 50756a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private String generateDidId(String domain, String participant, String certifica
if (idBuilder.length() > configProperties.getDid().getDidId().length()) {
idBuilder.append(SEPARATOR_COLON);
}
idBuilder.append(participant);
idBuilder.append(getCountryAsLowerCaseAlpha3(participant));
if (certificateType != null && !certificateType.isEmpty()) {
if (idBuilder.length() > configProperties.getDid().getDidId().length()) {
idBuilder.append(SEPARATOR_COLON);
Expand Down Expand Up @@ -264,7 +264,7 @@ private String generateContainerPathForDid(String domain, String participant, St
if (path.length() > 0) {
path.append("/");
}
path.append(participant);
path.append(getCountryAsLowerCaseAlpha3(participant));
}
if (certificateType != null) {
if (path.length() > 0) {
Expand Down

0 comments on commit 50756a0

Please sign in to comment.