From 3afe05c3cd18be3735a236536a9c332b08bd5bca Mon Sep 17 00:00:00 2001 From: Enrico Risa Date: Tue, 20 Jun 2023 14:12:13 +0200 Subject: [PATCH] fix after review --- .../edc/iam/ssi/identity/SsiIdentityServiceExtension.java | 2 +- .../iam/ssi/identity/rule/SsiAudienceValidationRule.java | 2 +- .../ssi/identity/rule/SsiAudienceValidationRuleTest.java | 2 +- .../edc/iam/ssi/spi/jsonld/JsonLdFieldExtractor.java | 7 +++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/SsiIdentityServiceExtension.java b/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/SsiIdentityServiceExtension.java index 402993985..ca69eb878 100644 --- a/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/SsiIdentityServiceExtension.java +++ b/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/SsiIdentityServiceExtension.java @@ -31,7 +31,7 @@ public class SsiIdentityServiceExtension implements ServiceExtension { public static final String EXTENSION_NAME = "SSI Identity Service"; - @Setting(value = "SSI Endpoint audience") + @Setting(value = "SSI Endpoint audience of this connector") public static final String ENDPOINT_AUDIENCE = "tx.ssi.endpoint.audience"; @Inject diff --git a/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/rule/SsiAudienceValidationRule.java b/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/rule/SsiAudienceValidationRule.java index 43b2c0a9e..dc3c7eae9 100644 --- a/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/rule/SsiAudienceValidationRule.java +++ b/edc-extensions/ssi/ssi-identity-core/src/main/java/org/eclipse/tractusx/edc/iam/ssi/identity/rule/SsiAudienceValidationRule.java @@ -38,7 +38,7 @@ public Result checkRule(@NotNull ClaimToken toVerify, @Nullable Map extract(JsonObject root) { public static class Builder { - JsonLdFieldExtractor extractor; + private final JsonLdFieldExtractor extractor; private Builder(JsonLdFieldExtractor extractor) { this.extractor = extractor; @@ -77,7 +80,7 @@ public Builder errorPrefix(String errorPrefix) { this.extractor.errorPrefix = errorPrefix; return this; } - + public JsonLdFieldExtractor build() { Objects.requireNonNull(extractor.field); Objects.requireNonNull(extractor.fieldAlias);