From 827a61efaa827cd7bb24387c15aac3f900c21e88 Mon Sep 17 00:00:00 2001 From: Glauco <37829079+rglauco@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:49:26 +0100 Subject: [PATCH] fix: removed unused function getChainAsString --- .../cie/oidc/model/TrustChainBuilder.java | 36 +++++++++---------- .../cie/oidc/model/TestTrustChainBuilder.java | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/starter-kit/src/main/java/it/spid/cie/oidc/model/TrustChainBuilder.java b/starter-kit/src/main/java/it/spid/cie/oidc/model/TrustChainBuilder.java index e798455..6f1df8c 100644 --- a/starter-kit/src/main/java/it/spid/cie/oidc/model/TrustChainBuilder.java +++ b/starter-kit/src/main/java/it/spid/cie/oidc/model/TrustChainBuilder.java @@ -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); diff --git a/starter-kit/src/test/java/it/spid/cie/oidc/model/TestTrustChainBuilder.java b/starter-kit/src/test/java/it/spid/cie/oidc/model/TestTrustChainBuilder.java index e717d5f..9ba11e4 100644 --- a/starter-kit/src/test/java/it/spid/cie/oidc/model/TestTrustChainBuilder.java +++ b/starter-kit/src/test/java/it/spid/cie/oidc/model/TestTrustChainBuilder.java @@ -64,7 +64,7 @@ public void testTrustChainBuilderClass() { try { tcb.getChain(); - tcb.getChainAsString(); + //tcb.getChainAsString(); tcb.getExpiresOn(); tcb.getFinalMetadata(); tcb.getPartiesInvolvedAsString();