From 2ef065fd236d6b36662d35eb53176a0614226cef Mon Sep 17 00:00:00 2001 From: Enrico Risa Date: Thu, 16 Nov 2023 14:50:54 +0100 Subject: [PATCH] chore: removes README for the Trusted Issuer Configuration extension --- DEPENDENCIES | 2 +- .../identity-trust-issuers-configuration/README.md | 13 ------------- .../TrustedIssuerConfigurationExtension.java | 9 +++++++++ 3 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 extensions/common/iam/identity-trust/identity-trust-issuers-configuration/README.md diff --git a/DEPENDENCIES b/DEPENDENCIES index abf0ffadfdb..3611853887b 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -160,7 +160,7 @@ maven/mavencentral/io.swagger.parser.v3/swagger-parser/2.1.10, None, restricted, maven/mavencentral/io.swagger/swagger-annotations/1.6.9, Apache-2.0, approved, #3792 maven/mavencentral/io.swagger/swagger-compat-spec-parser/1.0.64, None, restricted, #11479 maven/mavencentral/io.swagger/swagger-core/1.6.9, Apache-2.0, approved, #4358 -maven/mavencentral/io.swagger/swagger-models/1.6.9, LicenseRef-scancode-proprietary-license, restricted, #11476 +maven/mavencentral/io.swagger/swagger-models/1.6.9, Apache-2.0, approved, #11476 maven/mavencentral/io.swagger/swagger-parser/1.0.64, Apache-2.0, approved, #4359 maven/mavencentral/jakarta.activation/jakarta.activation-api/1.2.1, EPL-2.0 OR BSD-3-Clause OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.jaf maven/mavencentral/jakarta.activation/jakarta.activation-api/2.1.0, EPL-2.0 OR BSD-3-Clause OR GPL-2.0-only with Classpath-exception-2.0, approved, ee4j.jaf diff --git a/extensions/common/iam/identity-trust/identity-trust-issuers-configuration/README.md b/extensions/common/iam/identity-trust/identity-trust-issuers-configuration/README.md deleted file mode 100644 index 612df75eab7..00000000000 --- a/extensions/common/iam/identity-trust/identity-trust-issuers-configuration/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Trusted Issuer Configuration Extension - -This IATP extension makes it possible configure a list of trusted issuers, that will be used matches against the Verifiable Credential issuers. - -## Configuration - -Per issuer the following settings must be configured. As `` any unique string is valid. - -| Key | Description | Mandatory | -|:-----------------------------------------------------|:---------------------------------|-----------| -| edc.iam.trusted-issuer.````.id | ID of the issuer. | X | -| edc.iam.trusted-issuer.````.properties | Additional properties of Issuer. | (X) | - diff --git a/extensions/common/iam/identity-trust/identity-trust-issuers-configuration/src/main/java/org/eclipse/edc/identitytrust/issuer/configuration/TrustedIssuerConfigurationExtension.java b/extensions/common/iam/identity-trust/identity-trust-issuers-configuration/src/main/java/org/eclipse/edc/identitytrust/issuer/configuration/TrustedIssuerConfigurationExtension.java index 83a46a00462..0ac6d5f8fd4 100644 --- a/extensions/common/iam/identity-trust/identity-trust-issuers-configuration/src/main/java/org/eclipse/edc/identitytrust/issuer/configuration/TrustedIssuerConfigurationExtension.java +++ b/extensions/common/iam/identity-trust/identity-trust-issuers-configuration/src/main/java/org/eclipse/edc/identitytrust/issuer/configuration/TrustedIssuerConfigurationExtension.java @@ -19,6 +19,7 @@ import org.eclipse.edc.identitytrust.model.Issuer; import org.eclipse.edc.runtime.metamodel.annotation.Extension; import org.eclipse.edc.runtime.metamodel.annotation.Inject; +import org.eclipse.edc.runtime.metamodel.annotation.Setting; import org.eclipse.edc.spi.EdcException; import org.eclipse.edc.spi.system.ServiceExtension; import org.eclipse.edc.spi.system.ServiceExtensionContext; @@ -29,12 +30,20 @@ import static org.eclipse.edc.identitytrust.issuer.configuration.TrustedIssuerConfigurationExtension.NAME; +/** + * This IATP extension makes it possible configure a list of trusted issuers, that will be used matches against the Verifiable Credential issuers. + */ @Extension(NAME) public class TrustedIssuerConfigurationExtension implements ServiceExtension { public static final String CONFIG_PREFIX = "edc.iam.trusted-issuer"; + public static final String CONFIG_ALIAS = CONFIG_PREFIX + ".."; + + @Setting(context = CONFIG_ALIAS, value = "Additional properties of the issuer.") public static final String PROPERTIES_SUFFIX = "properties"; + @Setting(context = CONFIG_ALIAS, value = "ID of the issuer.", required = true) public static final String ID_SUFFIX = "id"; + protected static final String NAME = "Trusted Issuers Configuration Extensions"; @Inject