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..f7cde5522c2 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 to configure a list of trusted issuers, that will be matched 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