diff --git a/README.md b/README.md
index 5643c565..05df3690 100644
--- a/README.md
+++ b/README.md
@@ -101,13 +101,13 @@ If you are using Maven, you need to add the following dependency:
com.yoti
yoti-sdk-api
- 4.2.0
+ 4.3.0-SNAPSHOT
```
If you are using Gradle, here is the dependency to add:
-`compile group: 'com.yoti', name: 'yoti-sdk-api', version: '4.2.0'`
+`compile group: 'com.yoti', name: 'yoti-sdk-api', version: '4.3.0-SNAPSHOT'`
You will find all classes packaged under `com.yoti.api`
diff --git a/examples/doc-scan/pom.xml b/examples/doc-scan/pom.xml
index 501ced07..c271c554 100644
--- a/examples/doc-scan/pom.xml
+++ b/examples/doc-scan/pom.xml
@@ -53,7 +53,7 @@
com.yoti
yoti-sdk-api
- 4.2.0
+ 4.3.0-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index a7322081..64a28aaa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.yoti
yoti-sdk
pom
- 4.2.0
+ 4.3.0-SNAPSHOT
Yoti SDK
Java SDK for simple integration with the Yoti platform
https://github.com/getyoti/yoti-java-sdk
diff --git a/yoti-sdk-api/pom.xml b/yoti-sdk-api/pom.xml
index 4ed4068a..3595c214 100644
--- a/yoti-sdk-api/pom.xml
+++ b/yoti-sdk-api/pom.xml
@@ -11,7 +11,7 @@
com.yoti
yoti-sdk-parent
- 4.2.0
+ 4.3.0-SNAPSHOT
../yoti-sdk-parent
diff --git a/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java b/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java
index 4cd26dec..ddb2b335 100644
--- a/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java
+++ b/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java
@@ -48,6 +48,9 @@ public class SdkConfig {
@JsonProperty("allow_handoff")
private final Boolean allowHandoff;
+ @JsonProperty("enforce_handoff")
+ private final Boolean enforceHandoff;
+
@JsonProperty("attempts_configuration")
private final AttemptsConfiguration attemptsConfiguration;
@@ -72,6 +75,7 @@ private SdkConfig(String allowedCaptureMethods,
String errorUrl,
String privacyPolicyUrl,
Boolean allowHandoff,
+ Boolean enforceHandoff,
AttemptsConfiguration attemptsConfiguration,
String brandId,
String biometricConsentFlow,
@@ -88,6 +92,7 @@ private SdkConfig(String allowedCaptureMethods,
this.errorUrl = errorUrl;
this.privacyPolicyUrl = privacyPolicyUrl;
this.allowHandoff = allowHandoff;
+ this.enforceHandoff = enforceHandoff;
this.attemptsConfiguration = attemptsConfiguration;
this.brandId = brandId;
this.biometricConsentFlow = biometricConsentFlow;
@@ -206,6 +211,15 @@ public Boolean getAllowHandoff() {
return allowHandoff;
}
+ /**
+ * If mobile handoff is enforced in the session
+ *
+ * @return if mobile handoff is enforced
+ */
+ public Boolean getEnforceHandoff() {
+ return enforceHandoff;
+ }
+
/**
* The number of allowed attempts for certain tasks
*
@@ -259,6 +273,7 @@ public static class Builder {
private String errorUrl;
private String privacyPolicyUrl;
private Boolean allowHandoff;
+ private Boolean enforceHandoff;
private AttemptsConfiguration attemptsConfiguration;
private String brandId;
private String biometricConsentFlow;
@@ -444,6 +459,17 @@ public Builder withAllowHandoff(boolean allowHandoff) {
return this;
}
+ /**
+ * Sets if the user is required to perform mobile handoff
+ *
+ * @param enforceHandoff if mobile handoff is enforced
+ * @return the builder
+ */
+ public Builder withEnforceHandoff(boolean enforceHandoff) {
+ this.enforceHandoff = enforceHandoff;
+ return this;
+ }
+
/**
* Sets the {@link AttemptsConfiguration} for any Text Extractions Tasks
*
@@ -528,6 +554,7 @@ public SdkConfig build() {
errorUrl,
privacyPolicyUrl,
allowHandoff,
+ enforceHandoff,
attemptsConfiguration,
brandId,
biometricConsentFlow,
diff --git a/yoti-sdk-api/src/main/java/com/yoti/api/client/spi/remote/call/YotiConstants.java b/yoti-sdk-api/src/main/java/com/yoti/api/client/spi/remote/call/YotiConstants.java
index e1a005ee..9ff0d9ab 100644
--- a/yoti-sdk-api/src/main/java/com/yoti/api/client/spi/remote/call/YotiConstants.java
+++ b/yoti-sdk-api/src/main/java/com/yoti/api/client/spi/remote/call/YotiConstants.java
@@ -30,7 +30,7 @@ private YotiConstants() {}
public static final String CONTENT_TYPE_JPEG = "image/jpeg";
public static final String JAVA = "Java";
- public static final String SDK_VERSION = JAVA + "-4.2.0";
+ public static final String SDK_VERSION = JAVA + "-4.3.0-SNAPSHOT";
public static final String SIGNATURE_ALGORITHM = "SHA256withRSA";
public static final String ASYMMETRIC_CIPHER = "RSA/NONE/PKCS1Padding";
public static final String SYMMETRIC_CIPHER = "AES/CBC/PKCS7Padding";
diff --git a/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java b/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java
index a184e593..51807723 100644
--- a/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java
+++ b/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java
@@ -44,6 +44,7 @@ public void shouldBuildSimpleSdkConfigWithAllOptions() {
.withErrorUrl(SOME_ERROR_URL)
.withPrivacyPolicyUrl(SOME_PRIVACY_POLICY_URL)
.withAllowHandoff(true)
+ .withEnforceHandoff(true)
.withAttemptsConfiguration(attemptsConfigurationMock)
.withBrandId(SOME_BRAND_ID)
.withSuppressedScreen(SOME_SUPPRESSED_SCREEN)
@@ -64,6 +65,7 @@ public void shouldBuildSimpleSdkConfigWithAllOptions() {
assertThat(result.getErrorUrl(), is(SOME_ERROR_URL));
assertThat(result.getPrivacyPolicyUrl(), is(SOME_PRIVACY_POLICY_URL));
assertThat(result.getAllowHandoff(), is(true));
+ assertThat(result.getEnforceHandoff(), is(true));
assertThat(result.getAttemptsConfiguration(), is(attemptsConfigurationMock));
assertThat(result.getBrandId(), is(SOME_BRAND_ID));
assertThat(result.getSuppressedScreens(), hasSize(2));
@@ -78,6 +80,14 @@ public void allowHandoff_shouldBeNullWhenNotSet() {
assertThat(result.getAllowHandoff(), is(nullValue()));
}
+ @Test
+ public void enforceHandoff_shouldBeNullWhenNotSet() {
+ SdkConfig result = SdkConfig.builder()
+ .build();
+
+ assertThat(result.getEnforceHandoff(), is(nullValue()));
+ }
+
@Test
public void shouldBuildSimpleSdkConfigWithOnlyCamera() {
SdkConfig result = SdkConfig.builder()
diff --git a/yoti-sdk-auth/pom.xml b/yoti-sdk-auth/pom.xml
index 4c7c91f0..d25894ee 100644
--- a/yoti-sdk-auth/pom.xml
+++ b/yoti-sdk-auth/pom.xml
@@ -12,7 +12,7 @@
com.yoti
yoti-sdk-parent
- 4.2.0
+ 4.3.0-SNAPSHOT
../yoti-sdk-parent
diff --git a/yoti-sdk-parent/pom.xml b/yoti-sdk-parent/pom.xml
index fbaee583..6af5ef0f 100644
--- a/yoti-sdk-parent/pom.xml
+++ b/yoti-sdk-parent/pom.xml
@@ -5,7 +5,7 @@
com.yoti
yoti-sdk-parent
pom
- 4.2.0
+ 4.3.0-SNAPSHOT
Yoti SDK Parent Pom
Parent pom for the Java SDK projects
https://github.com/getyoti/yoti-java-sdk
diff --git a/yoti-sdk-sandbox/pom.xml b/yoti-sdk-sandbox/pom.xml
index 86cc5226..a8d5ee66 100644
--- a/yoti-sdk-sandbox/pom.xml
+++ b/yoti-sdk-sandbox/pom.xml
@@ -11,7 +11,7 @@
com.yoti
yoti-sdk-parent
- 4.2.0
+ 4.3.0-SNAPSHOT
../yoti-sdk-parent
diff --git a/yoti-sdk-spring-boot-auto-config/README.md b/yoti-sdk-spring-boot-auto-config/README.md
index 1ac0e674..9f50e24a 100644
--- a/yoti-sdk-spring-boot-auto-config/README.md
+++ b/yoti-sdk-spring-boot-auto-config/README.md
@@ -18,7 +18,7 @@ If you are using Maven, you need to add the following dependencies:
com.yoti
yoti-sdk-spring-boot-auto-config
- 4.2.0
+ 4.3.0-SNAPSHOT
```
@@ -26,7 +26,7 @@ If you are using Maven, you need to add the following dependencies:
If you are using Gradle, here is the dependency to add:
```
-compile group: 'com.yoti', name: 'yoti-sdk-spring-boot-auto-config', version: '4.2.0'
+compile group: 'com.yoti', name: 'yoti-sdk-spring-boot-auto-config', version: '4.3.0-SNAPSHOT'
```
diff --git a/yoti-sdk-spring-boot-auto-config/pom.xml b/yoti-sdk-spring-boot-auto-config/pom.xml
index f7f7bcf8..2770e669 100644
--- a/yoti-sdk-spring-boot-auto-config/pom.xml
+++ b/yoti-sdk-spring-boot-auto-config/pom.xml
@@ -12,7 +12,7 @@
com.yoti
yoti-sdk-parent
- 4.2.0
+ 4.3.0-SNAPSHOT
../yoti-sdk-parent
diff --git a/yoti-sdk-spring-boot-example/README.md b/yoti-sdk-spring-boot-example/README.md
index 88a0c9ba..72d9950f 100644
--- a/yoti-sdk-spring-boot-example/README.md
+++ b/yoti-sdk-spring-boot-example/README.md
@@ -17,7 +17,7 @@ Note that:
com.yoti
yoti-sdk-api
- 4.2.0
+ 4.3.0-SNAPSHOT
```
diff --git a/yoti-sdk-spring-boot-example/pom.xml b/yoti-sdk-spring-boot-example/pom.xml
index 888424f4..1ccd21a4 100644
--- a/yoti-sdk-spring-boot-example/pom.xml
+++ b/yoti-sdk-spring-boot-example/pom.xml
@@ -6,7 +6,7 @@
com.yoti
yoti-sdk-spring-boot-example
Yoti Spring Boot Example
- 4.2.0
+ 4.3.0-SNAPSHOT
org.springframework.boot
diff --git a/yoti-sdk-spring-security/README.md b/yoti-sdk-spring-security/README.md
index afe15649..ce21c7cc 100644
--- a/yoti-sdk-spring-security/README.md
+++ b/yoti-sdk-spring-security/README.md
@@ -25,14 +25,14 @@ If you are using Maven, you need to add the following dependencies:
com.yoti
yoti-sdk-spring-security
- 4.2.0
+ 4.3.0-SNAPSHOT
```
If you are using Gradle, here is the dependency to add:
```
-compile group: 'com.yoti', name: 'yoti-sdk-spring-security', version: '4.2.0'
+compile group: 'com.yoti', name: 'yoti-sdk-spring-security', version: '4.3.0-SNAPSHOT'
```
### Provide a `YotiClient` instance
diff --git a/yoti-sdk-spring-security/pom.xml b/yoti-sdk-spring-security/pom.xml
index 3c22ad5f..5fb0d4a5 100644
--- a/yoti-sdk-spring-security/pom.xml
+++ b/yoti-sdk-spring-security/pom.xml
@@ -12,7 +12,7 @@
com.yoti
yoti-sdk-parent
- 4.2.0
+ 4.3.0-SNAPSHOT
../yoti-sdk-parent