Package com.yoti.api.client
Class Profile
java.lang.Object
com.yoti.api.client.Profile
- Direct Known Subclasses:
ApplicationProfile,HumanProfile
Yoti profile for a connect token and application. You can get a hold of one of these by using a
YotiClient.-
Method Summary
Modifier and TypeMethodDescriptionfindAttributesStartingWith(String name, Class<T> clazz) Return a list of all theAttributes with a name starting withname<T> Attribute<T>findAttributeStartingWith(String name, Class<T> clazz) Return the firstAttributewith a name starting withnameAttribute<?>getAttribute(String name) Returns theAttributeobject for the key<T> Attribute<T>getAttribute(String name, Class<T> clazz) Return typedAttributeobject for a key.Return typedAttributeby ID.Collection<Attribute<?>>Return allAttributes for the profile.
-
Method Details
-
getAttribute
Return typedAttributeobject for a key.- Type Parameters:
T- the type parameter indicating the type of the returned value- Parameters:
name- attribute nameclazz- attribute type- Returns:
- typed attribute, null if it is not present in the profile
-
getAttribute
Returns theAttributeobject for the key- Parameters:
name- the name of the attribute- Returns:
- the attribute object, null if it is not present in the profile
-
findAttributesStartingWith
Return a list of all theAttributes with a name starting withname- Type Parameters:
T- the type parameter indicating the type of the returned value- Parameters:
name- attribute nameclazz- attribute type- Returns:
- typed attribute value,
nullif there was no match
-
findAttributeStartingWith
Return the firstAttributewith a name starting withname- Type Parameters:
T- the type parameter indicating the type of the returned value- Parameters:
name- attribute nameclazz- attribute type- Returns:
- typed attribute value,
nullif there was no match
-
getAttributes
Return allAttributes for the profile.- Returns:
- an unsorted collection of
Attributes
-
getAttributeById
Return typedAttributeby ID.- Parameters:
id- the ID to match- Returns:
- attribute value,
nullif there was no match
-