Package com.onfido.model
Class SdkTokenBuilder
- java.lang.Object
-
- com.onfido.model.SdkTokenBuilder
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class SdkTokenBuilder extends Object
SdkTokenBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSdkTokenBuilder.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APPLICANT_IDstatic StringSERIALIZED_NAME_APPLICATION_IDstatic StringSERIALIZED_NAME_CROSS_DEVICE_URLstatic StringSERIALIZED_NAME_REFERRER
-
Constructor Summary
Constructors Constructor Description SdkTokenBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkTokenBuilderapplicantId(UUID applicantId)SdkTokenBuilderapplicationId(String applicationId)SdkTokenBuildercrossDeviceUrl(String crossDeviceUrl)booleanequals(Object o)static SdkTokenBuilderfromJson(String jsonString)Create an instance of SdkTokenBuilder given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.UUIDgetApplicantId()The unique identifier of the applicantStringgetApplicationId()The application ID (iOS or Android)StringgetCrossDeviceUrl()The URL to be used by the Web SDK for the cross device flow.StringgetReferrer()The referrer URL patterninthashCode()SdkTokenBuilderputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.SdkTokenBuilderreferrer(String referrer)voidsetApplicantId(UUID applicantId)voidsetApplicationId(String applicationId)voidsetCrossDeviceUrl(String crossDeviceUrl)voidsetReferrer(String referrer)StringtoJson()Convert an instance of SdkTokenBuilder to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_APPLICANT_ID
public static final String SERIALIZED_NAME_APPLICANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERRER
public static final String SERIALIZED_NAME_REFERRER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICATION_ID
public static final String SERIALIZED_NAME_APPLICATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CROSS_DEVICE_URL
public static final String SERIALIZED_NAME_CROSS_DEVICE_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
applicantId
public SdkTokenBuilder applicantId(UUID applicantId)
-
getApplicantId
@Nonnull public UUID getApplicantId()
The unique identifier of the applicant- Returns:
- applicantId
-
setApplicantId
public void setApplicantId(UUID applicantId)
-
referrer
public SdkTokenBuilder referrer(String referrer)
-
setReferrer
public void setReferrer(String referrer)
-
applicationId
public SdkTokenBuilder applicationId(String applicationId)
-
getApplicationId
@Nullable public String getApplicationId()
The application ID (iOS or Android)- Returns:
- applicationId
-
setApplicationId
public void setApplicationId(String applicationId)
-
crossDeviceUrl
public SdkTokenBuilder crossDeviceUrl(String crossDeviceUrl)
-
getCrossDeviceUrl
@Nullable public String getCrossDeviceUrl()
The URL to be used by the Web SDK for the cross device flow.- Returns:
- crossDeviceUrl
-
setCrossDeviceUrl
public void setCrossDeviceUrl(String crossDeviceUrl)
-
putAdditionalProperty
public SdkTokenBuilder putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the SdkTokenBuilder instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to SdkTokenBuilder
-
fromJson
public static SdkTokenBuilder fromJson(String jsonString) throws IOException
Create an instance of SdkTokenBuilder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SdkTokenBuilder
- Throws:
IOException- if the JSON string is invalid with respect to SdkTokenBuilder
-
toJson
public String toJson()
Convert an instance of SdkTokenBuilder to an JSON string- Returns:
- JSON string
-
-