Class AgeVerification

java.lang.Object
com.yoti.api.client.AgeVerification

public final class AgeVerification extends Object
Wraps an 'Age Verify/Condition' attribute to provide behaviour specific to verifying someone's age
  • Constructor Details

    • AgeVerification

      public AgeVerification(Attribute<String> derivedAttribute)
  • Method Details

    • getAge

      public int getAge()
      The age that was that checked, as specified on Yoti Hub.
      Returns:
      The age that was that checked
    • getCheckType

      public String getCheckType()
      The type of age check performed, as specified on Yoti Hub. Currently this might be 'age_over' or 'age_under'
      Returns:
      The type of age check performed
    • getResult

      public boolean getResult()
      Whether or not the profile passed the age check
      Returns:
      The result of the age check.
    • getAttribute

      public Attribute<String> getAttribute()
      The wrapped profile attribute. Use this if you need access to the underlying List of Anchors
      Returns:
      The wrapped profile attribute