Skip to content

Releases: getyoti/yoti-java-sdk

v2.7.0

18 Feb 15:43
4c53f6a

Choose a tag to compare

Added

  • Support for Yoti Doc Scan
    • The new DocScanClient can be used for communication with Yoti Doc Scan API's to facilitate the following operations:
      • Session creation, retrieval and deletion
        • .createSession(SessionSpec sessionSpec) : CreateSessionResult
        • .getSession(String sessionId) : GetSessionResult
        • .deleteSession(String sessionId) : void
      • Media retrieval and deletion
        • .getMediaContent(String sessionId, String mediaId) : Media
        • .deleteMediaContent(String sessionId, String mediaId) : void

Deprecated

  • YotiClientBuilder.forApplication(String applicationId) in favour of .withClientSdkId(String sdkId) (Application ID is now SDK ID within Yoti Hub)

v2.6.1

12 Feb 17:44
89aca38

Choose a tag to compare

Fixed

  • Updated document details parsing, to allow for other document numbers such as redacted Aadhar

v2.6.0

04 Dec 10:58
8e74ab5

Choose a tag to compare

Added

  • SourceConstraintBuilder for use in Dynamic Scenarios
  • AttributeIssuanceDetails
    • This can be accessed through ActivityDetails once a share has been completed using ThirdPartyAttributeExtensionBuilder
  • ThirdPartyAttributeIssuingRequest

Changed

  • SignedRequest
    • Allow users to specify Image as return class type if retrieving an image from a Yoti endpoint
    • SignedRequestResponse can be retrieved to access the raw request response for custom parsing.
  • WantedAttribute
    • name property is now validated to not be null/empty, and will throw an IllegalArgumentException if validation fails

v2.5.1

20 Nov 09:54

Choose a tag to compare

Changed

  • Updated exception handling of the Signed Request builder to make error reporting more concise

v2.5.0

03 Oct 16:25

Choose a tag to compare

Added

  • Signed Request with builder to support creating signed requests to Yoti services

v2.4.0

14 Aug 09:35

Choose a tag to compare

Added

  • DynamicPolicyBuilder.withWantedAuthType(int wantedAuthType, boolean enabled)
  • DynamicPolicyBuilder.withWantedAttribute(boolean optional, String name)

v2.3.0

28 Mar 13:07

Choose a tag to compare

Added

  • Support for new the new document_images list attribute

Changed

  • Minor refactor to requesting Pin Authorisation and Selfie Authorisation when creating DynamicScenarios
withSelfieAuthorisation(boolean enabled)
withPinAuthorisation(boolean enabled)

v2.2.0

18 Dec 18:02

Choose a tag to compare

Added

  • New client to support dynamic scenarios. You can now specify which attributes to request on the fly using this SDK
  • New model for AgeVerification. The SDK now supports multiple age checks on a single profile/scenario
  • New parentRememberMeId on ActivityDetails, to support identifying users across a single organisation
  • Early inclusion of a sandbox client. As a consequence of this work, some of the DTOs now have builders, and equals and hashCode has been overriden on the following:
    -- DateValue
    -- DateTimeValue
    -- SignedTimestampValue
    -- TimeValue

Deprecated

  • Profile.isAgeVerified() - please use the new AgeVerification object together with findAgeOverVerification or findAgeUnderVerification

Changed

The spring demo has been updated with a much nicer UI.

v2.1.0

15 Oct 17:36

Choose a tag to compare

Changed

We plan to replace the Attribute postal_address with an Attribute structured_postal_address.
In an effort to avoid breaking existing integrations, if the postal_address is missing the SDK will now check for the structured_postal_address and substitute it in.

Added

  • All Image objects can now provide a base64 string

Deprecated

  • ActivityDetails.getUserId() - please use ActivityDetails.getRememberMeId() from now on
  • ActivityDetails.getBase64Selfie() - you can now get a base64 version of the selfie from the selfie attribute (of type Attribute)

v2.0.0

02 Jul 11:28

Choose a tag to compare

Removed

Dropped support for Java 6

Minimum supported Java version is now 7.

Removed toString() methods

We've removed implementations of toString() from all the DTOs returned through the public API.

Changed

New interfaces - Attribute and Anchor

The old com.yoti.api.client.Attribute class has been replaced with com.yoti.api.client.Attribute<T>, which now exposes a List<Anchor> for the sources and verifiers of the attribute.
The old Set<String> getSources() and Set<String> getVerifiers() methods have been replaced with List<Anchor> getSources() and List<Anchor> getVerifiers().

Changes to HumanProfile and ApplicationProfile

All attributes are now returned as an instance of Attribute<T>. Use the Attribute<T>.getValue() method to determine the actual value of an attribute.
Consequently, all the getXXXSources and getXXXVerifiers methods have been removed, as well as the is(name, defaultValue) helper method

No Enums returned by the public API

Yoti is adding new functionality all the time. To avoid the risk the new values returned to the SDK will cause it to break, the SDK will no longer try to map returned values to Enums. Each SDK release will define String constants in the public API for the possible values known at the time of release.
The two Enums removed are:

  • DocumentType - the DocumentDetails.getType() method now returns a String. The possible values are exposed as constants on the com.yoti.api.client.DocumentDetails interface.
  • HumanProfile.Gender - HumanProfile.getGender() now returns an Attribute<String>. Possible values are defined in com.yoti.api.client.HumanProfile.