Package com.yoti.api.client
Class AgeVerification
java.lang.Object
com.yoti.api.client.AgeVerification
Wraps an 'Age Verify/Condition' attribute to provide behaviour specific to verifying someone's age
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAge()The age that was that checked, as specified on Yoti Hub.The wrapped profile attribute.The type of age check performed, as specified on Yoti Hub.booleanWhether or not the profile passed the age check
-
Constructor Details
-
AgeVerification
-
-
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
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
The wrapped profile attribute. Use this if you need access to the underlying List ofAnchors- Returns:
- The wrapped profile attribute
-