Skip to content

v2.0.0

Compare
Choose a tag to compare
@bucky-boy bucky-boy released this 02 Jul 11:28
· 585 commits to master since this release

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.