diff --git a/yoti-sdk-api/src/main/java/com/yoti/api/client/DigitalIdentityClient.java b/yoti-sdk-api/src/main/java/com/yoti/api/client/DigitalIdentityClient.java index 48c39fc9..2b3faa46 100644 --- a/yoti-sdk-api/src/main/java/com/yoti/api/client/DigitalIdentityClient.java +++ b/yoti-sdk-api/src/main/java/com/yoti/api/client/DigitalIdentityClient.java @@ -35,44 +35,36 @@ public class DigitalIdentityClient { } /** - * Create a sharing session to initiate a sharing process based on a policy + * Create a sharing session to initiate a sharing process based on a policy. * - * @param request Details of the request like policy, extensions and push notification for the application * @return ID, status and expiry of the newly created share session - * @throws DigitalIdentityException Thrown if the session creation is unsuccessful */ public ShareSession createShareSession(ShareSessionRequest request) throws DigitalIdentityException { return identityService.createShareSession(sdkId, keyPair, request); } /** - * Retrieve the sharing session + * Retrieve the sharing session. * - * @param sessionId ID of the session to retrieve * @return ID, status and expiry of the share session - * @throws DigitalIdentityException Thrown if the session retrieval is unsuccessful */ public ShareSession fetchShareSession(String sessionId) throws DigitalIdentityException { return identityService.fetchShareSession(sdkId, keyPair, sessionId); } /** - * Create a sharing session QR code to initiate a sharing process based on a policy + * Create a sharing session QR code to initiate a sharing process based on a policy. * - * @param sessionId Session ID the QR code will belong to * @return ID and URI of the newly created share session QR code - * @throws DigitalIdentityException Thrown if the QR code creation is unsuccessful */ public ShareSessionQrCode createShareQrCode(String sessionId) throws DigitalIdentityException { return identityService.createShareQrCode(sdkId, keyPair, sessionId); } /** - * Retrieve the sharing session QR code + * Retrieve the sharing session QR code. * - * @param qrCodeId ID of the QR code to retrieve * @return The content of the share session QR code - * @throws DigitalIdentityException Thrown if the QR code retrieval is unsuccessful */ public ShareSessionQrCode fetchShareQrCode(String qrCodeId) throws DigitalIdentityException { return identityService.fetchShareQrCode(sdkId, keyPair, qrCodeId); @@ -83,9 +75,7 @@ public ShareSessionQrCode fetchShareQrCode(String qrCodeId) throws DigitalIdenti * *
A receipt will contain the shared user attributes.
* - * @param receiptId ID of the receipt * @return Shared user attributes - * @throws DigitalIdentityException Thrown if the receipt retrieval is unsuccessful */ public Receipt fetchShareReceipt(String receiptId) throws DigitalIdentityException { return identityService.fetchShareReceipt(sdkId, keyPair, receiptId); diff --git a/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAnchor.java b/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAnchor.java index ed6c306f..86bf6845 100644 --- a/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAnchor.java +++ b/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAnchor.java @@ -1,5 +1,7 @@ package com.yoti.api.client.identity.policy; +import java.util.Objects; + import com.yoti.validation.Validation; import com.fasterxml.jackson.annotation.JsonProperty; @@ -25,6 +27,23 @@ public String getSubType() { return subType; } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WantedAnchor that = (WantedAnchor) o; + return Objects.equals(value, that.value) && Objects.equals(subType, that.subType); + } + + @Override + public int hashCode() { + return Objects.hash(value, subType); + } + public static Builder builder() { return new Builder(); } diff --git a/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAttribute.java b/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAttribute.java index f59c895a..010b0dc0 100644 --- a/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAttribute.java +++ b/yoti-sdk-api/src/main/java/com/yoti/api/client/identity/policy/WantedAttribute.java @@ -54,6 +54,10 @@ public List