Package com.yoti.api.client
Class HumanProfile
java.lang.Object
com.yoti.api.client.Profile
com.yoti.api.client.HumanProfile
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHumanProfile(List<Attribute<?>> attributeList) Create a new Human profile based on a list of attributes -
Method Summary
Modifier and TypeMethodDescriptionfindAgeOverVerification(int age) Searches for anAgeVerificationcorresponding to an 'Age Over' check for the given agefindAgeUnderVerification(int age) Searches for anAgeVerificationcorresponding to an 'Age Under' check for the given ageFinds all the 'Age Over' and 'Age Under' derived attributes returned with the profile, and returns them wrapped inAgeVerificationobjectsDate of birthDocument detailsDocument imagesThe user's verified email address.Corresponds to primary name in passport, and surname in English.The full name attribute.Corresponds to the gender in the passport; will be one of the strings "MALE", "FEMALE", "TRANSGENDER" or "OTHER".Corresponds to secondary names in passport, and first/middle names in English.JSON object containing identity assertion and the verification report.Corresponds to the nationality in the passport.The user's phone number, as verified at registration time.The user's postal address as a StringPhotograph of user, encoded as a JPEG image.The user's structured postal address as a JsonMethods inherited from class com.yoti.api.client.Profile
findAttributesStartingWith, findAttributeStartingWith, getAttribute, getAttribute, getAttributeById, getAttributes
-
Field Details
-
GENDER_MALE
- See Also:
-
GENDER_FEMALE
- See Also:
-
GENDER_TRANSGENDER
- See Also:
-
GENDER_OTHER
- See Also:
-
-
Constructor Details
-
HumanProfile
Create a new Human profile based on a list of attributes- Parameters:
attributeList- list containing the attributes for this profile
-
-
Method Details
-
getFamilyName
Corresponds to primary name in passport, and surname in English.- Returns:
- the family name
-
getGivenNames
Corresponds to secondary names in passport, and first/middle names in English.- Returns:
- the given names
-
getFullName
The full name attribute.- Returns:
- the full name
-
getDateOfBirth
Date of birth- Returns:
- Date of birth
-
getAgeVerifications
Finds all the 'Age Over' and 'Age Under' derived attributes returned with the profile, and returns them wrapped inAgeVerificationobjects- Returns:
- A list of all the
AgeVerificationobjects returned for this profile
-
findAgeOverVerification
Searches for anAgeVerificationcorresponding to an 'Age Over' check for the given age- Parameters:
age- the age the search over- Returns:
- age_over
AgeVerificationfor the given age, ornullif no match was found
-
findAgeUnderVerification
Searches for anAgeVerificationcorresponding to an 'Age Under' check for the given age- Parameters:
age- the age to search under- Returns:
- age_under
AgeVerificationfor the given age, ornullif no match was found
-
getGender
Corresponds to the gender in the passport; will be one of the strings "MALE", "FEMALE", "TRANSGENDER" or "OTHER".- Returns:
- the gender
-
getPostalAddress
The user's postal address as a String- Returns:
- the postal address
-
getStructuredPostalAddress
The user's structured postal address as a Json- Returns:
- the postal address
-
getNationality
Corresponds to the nationality in the passport.- Returns:
- the nationality
-
getPhoneNumber
The user's phone number, as verified at registration time. This will be a number with + for international prefix and no spaces, e.g. "+447777123456".- Returns:
- the phone number
-
getSelfie
Photograph of user, encoded as a JPEG image.- Returns:
- the selfie
-
getEmailAddress
The user's verified email address.- Returns:
- the email address
-
getDocumentDetails
Document details- Returns:
- the document details
-
getDocumentImages
Document images- Returns:
- images of the document
-
getIdentityProfileReport
JSON object containing identity assertion and the verification report. This will be null if not provided by Yoti.- Returns:
- the identity profile report
-