Skip to content

Commit

Permalink
fix: removed unused function getChainAsString
Browse files Browse the repository at this point in the history
  • Loading branch information
rglauco committed Oct 30, 2023
1 parent 10b4033 commit 827a61e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,24 @@ public String getChain() {
return sj.toString();
}

public String getChainAsString() {
StringJoiner sj = new StringJoiner(",", "[", "]");

for (EntityConfiguration ec : trustPath) {
sj.add(ec.getPayload());
if (ec.hasVerifiedDescendantStatement()) {
StringJoiner sj2 = new StringJoiner(",", "[", "]");

for (String value : ec.getVerifiedDescendantStatement()) {
sj2.add(value);
}

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

return sj.toString();
}
// public String getChainAsString() {
// StringJoiner sj = new StringJoiner(",", "[", "]");
//
// for (EntityConfiguration ec : trustPath) {
// sj.add(ec.getPayload());
// if (ec.hasVerifiedDescendantStatement()) {
// StringJoiner sj2 = new StringJoiner(",", "[", "]");
//
// for (String value : ec.getVerifiedDescendantStatement()) {
// sj2.add(value);
// }
//
// sj.add(sj2.toString());
// }
// }
//
// return sj.toString();
// }

public LocalDateTime getExpiresOn() {
return LocalDateTime.ofEpochSecond(exp, 0, ZoneOffset.UTC);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void testTrustChainBuilderClass() {

try {
tcb.getChain();
tcb.getChainAsString();
//tcb.getChainAsString();
tcb.getExpiresOn();
tcb.getFinalMetadata();
tcb.getPartiesInvolvedAsString();
Expand Down

0 comments on commit 827a61e

Please sign in to comment.