From 1065b4d5be94850f67ad0eb75fcac85d7ad9b2ca Mon Sep 17 00:00:00 2001 From: irotech Date: Tue, 1 Aug 2023 17:15:00 +0100 Subject: [PATCH] fixup! SDK-2231: Add Digital Identity Client --- ...igitalIdentityClientAutoConfiguration.java | 10 ------- .../api/spring/DigitalIdentityProperties.java | 16 ---------- .../spring/YotiClientAutoConfiguration.java | 10 ------- .../com/yoti/api/spring/YotiProperties.java | 29 ------------------- 4 files changed, 65 deletions(-) diff --git a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityClientAutoConfiguration.java b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityClientAutoConfiguration.java index 8ae61428..56ac4844 100644 --- a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityClientAutoConfiguration.java +++ b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityClientAutoConfiguration.java @@ -12,10 +12,6 @@ import org.springframework.core.io.Resource; import org.springframework.core.io.ResourceLoader; -/** - * Automatically configures a Digital Identity Client instance based on the {@link ClientProperties} - * provided as long as a bean of the same type doesn't already exist. - */ @Configuration @ConditionalOnClass(DigitalIdentityClient.class) @EnableConfigurationProperties({ ClientProperties.class, DigitalIdentityProperties.class }) @@ -30,12 +26,6 @@ public DigitalIdentityClientAutoConfiguration(ClientProperties properties, Resou this.resourceLoader = resourceLoader; } - /** - * Configures a Digital Identity Client if a bean of this type does not already exist. - * - * @param keyPairSource the instance of a Key Pair Source configured separately as another bean. - * @return the configured client. - */ @Bean @ConditionalOnMissingBean(DigitalIdentityClient.class) public DigitalIdentityClient digitalIdentityClient(KeyPairSource keyPairSource) { diff --git a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityProperties.java b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityProperties.java index fce5c0d5..2a72e4de 100644 --- a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityProperties.java +++ b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/DigitalIdentityProperties.java @@ -2,31 +2,15 @@ import org.springframework.boot.context.properties.ConfigurationProperties; -/** - * Allows properties for Digital Identity configuration to be supplied via spring properties (e.g. YAML or properties file). - */ @ConfigurationProperties(prefix = "com.yoti.identity") public class DigitalIdentityProperties { - /** - * The Yoti Hub Application ID. - */ private String applicationId; - /** - * Gets the Yoti Hub Application ID. - * - * @return the Application ID. - */ public String getApplicationId() { return applicationId; } - /** - * Sets the Yoti Hub Application ID. - * - * @param id the new Application ID. - */ public void setApplicationId(String id) { applicationId = id; } diff --git a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiClientAutoConfiguration.java b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiClientAutoConfiguration.java index 9993351c..9d40c624 100644 --- a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiClientAutoConfiguration.java +++ b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiClientAutoConfiguration.java @@ -12,10 +12,6 @@ import org.springframework.core.io.Resource; import org.springframework.core.io.ResourceLoader; -/** - * Automatically configures a Yoti Client instance based on the {@link ClientProperties} - * provided as long as a bean of the same type doesn't already exist. - */ @Configuration @ConditionalOnClass(YotiClient.class) @EnableConfigurationProperties({ ClientProperties.class, YotiProperties.class}) @@ -30,12 +26,6 @@ public YotiClientAutoConfiguration(ClientProperties properties, ResourceLoader r this.resourceLoader = resourceLoader; } - /** - * Configures a Yoti client if a bean of this type does not already exist. - * - * @param keyPairSource the instance of a Key Pair Source configured separately as another bean. - * @return the configured client. - */ @Bean @ConditionalOnMissingBean(YotiClient.class) public YotiClient yotiClient(KeyPairSource keyPairSource) { diff --git a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiProperties.java b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiProperties.java index 2e154a97..ef4b2965 100644 --- a/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiProperties.java +++ b/yoti-sdk-spring-boot-auto-config/src/main/java/com/yoti/api/spring/YotiProperties.java @@ -2,54 +2,25 @@ import org.springframework.boot.context.properties.ConfigurationProperties; -/** - * Allows properties for Yoti configuration to be supplied via spring properties (e.g. YAML or properties file). - */ @ConfigurationProperties(prefix = "com.yoti") public class YotiProperties { - /** - * The Yoti Hub Application ID. - */ private String applicationId; - /** - * The Yoti Hub Scenario ID. - */ private String scenarioId; - /** - * Gets the Yoti Hub Application ID. - * - * @return the Application ID. - */ public String getApplicationId() { return applicationId; } - /** - * Sets the Yoti Hub Application ID. - * - * @param id the new Application ID. - */ public void setApplicationId(String id) { applicationId = id; } - /** - * Gets the Yoti Hub Scenario ID. - * - * @return the scenario ID. - */ public String getScenarioId() { return scenarioId; } - /** - * Sets the scenario ID given to you by Yoti Hub. - * - * @param id the scenario ID. - */ public void setScenarioId(String id) { scenarioId = id; }