Skip to content

Commit

Permalink
chore: reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
rglauco committed Nov 2, 2023
1 parent 28f912c commit 331ca7e
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,20 @@ public TrustChainBuilder(String subject, String metadataType, JWTHelper jwtHelpe
public String getChain() {
StringJoiner sj = new StringJoiner(",", "[", "]");
for (EntityConfiguration ec : trustPath) {
sj.add("\""+ec.getJwt()+"\"");
String statement = (new StringBuilder())
.append("\"")
.append(ec.getJwt())
.append("\"").toString();
sj.add(statement);
if (ec.hasVerifiedDescendantStatement()) {
String descendant = ec.getVerifiedDescendantStatementJwt();

StringJoiner sj2 = new StringJoiner(",", "[", "]");
sj2.add("\""+descendant+"\"");
String descendantStatement = (new StringBuilder())
.append("\"")
.append(descendant)
.append("\"").toString();
sj2.add(descendantStatement);

sj.add(sj2.toString());
}
Expand Down

0 comments on commit 331ca7e

Please sign in to comment.