Class SessionConfig.Builder
-
- All Implemented Interfaces:
public final class SessionConfig.Builder
-
-
Constructor Summary
Constructors Constructor Description SessionConfig.Builder()
-
Method Summary
Modifier and Type Method Description final SessionConfig.BuildersetInterviewId(String interviewId)final SessionConfig.BuildersetConfigurationId(String configurationId)Sets the configuration ID of a Flow defined in the Incode Dashboard to read server-side configuration settings from and merge them into this session. final SessionConfig.BuildersetValidationModuleList(List<OnboardingValidationModule> validationModuleList)final SessionConfig.BuildersetRegionIsoCode(String regionIsoCode)final SessionConfig.BuildersetQueueName(String queueName)final SessionConfig.BuildersetExternalId(String externalId)Assigns an ID from a client's system to this session. final SessionConfig.BuildersetExternalCustomerId(String externalCustomerId)Assigns an ID from a client's system to this session. final SessionConfig.BuildersetExternalToken(String externalToken)Sets the token of the onboarding session. final SessionConfig.BuildersetCustomFields(Map<String, String> customFields)final SessionConfig.BuildersetDownloadImagesEnabled(Boolean downloadImagesEnabled)final SessionConfig.BuildersetE2eEncryptionEnabled(Boolean e2eEncryptionEnabled)Enable or disable end-to-end encryption (E2EE). final SessionConfig.BuildersetE2eEncryptionAlgorithm(SessionConfig.E2eEncryptionAlgorithm e2eEncryptionAlgorithm)Sets the end-to-end encryption (E2EE) algorithm used in this session if E2EE is used. final SessionConfig.BuildersetMergeSessionRecordings(Boolean mergeSessionRecordings)Enables or disables server-side merging of video recordings from the IdScanandSelfieScanmodules.final SessionConfig.BuildersetLanguage(String languageCode)Sets the language for voice consent in VideoSelfiemodule.final SessionConfigbuild()Builds a SessionConfig object with the configured parameters. final static SessionConfig.Builderfrom(SessionConfig existingConfig)-
-
Method Detail
-
setInterviewId
final SessionConfig.Builder setInterviewId(String interviewId)
- Parameters:
interviewId- Identifies the session to resume.- Returns:
-
setConfigurationId
final SessionConfig.Builder setConfigurationId(String configurationId)
Sets the configuration ID of a Flow defined in the Incode Dashboard to read server-side configuration settings from and merge them into this session.
Note: The "configuration ID" is identical to the "flow ID" that can be copied from the Incode dashboard by selecting the "Copy flow ID" action for the desired Flow.
- Parameters:
configurationId- Predefined configuration ID for the current onboarding Flow.- Returns:
-
setValidationModuleList
final SessionConfig.Builder setValidationModuleList(List<OnboardingValidationModule> validationModuleList)
- Parameters:
validationModuleList- Validation modules that contribute to the total Onboarding score.- Returns:
-
setRegionIsoCode
@Deprecated(message = "This method is deprecated as the region is no longer necessary in the onboarding flow.") final SessionConfig.Builder setRegionIsoCode(String regionIsoCode)
- Parameters:
regionIsoCode- Region for the onboarding.- Returns:
-
setQueueName
final SessionConfig.Builder setQueueName(String queueName)
- Parameters:
queueName- Name of the video conference queue.- Returns:
-
setExternalId
final SessionConfig.Builder setExternalId(String externalId)
Assigns an ID from a client's system to this session. If a session exists with this
externalId, it will be resumed instead of creating a new one should the first session be interrupted.Note:
externalIdis ignored ifexternalCustomerIdis specified.- Parameters:
externalId- ID that is used outside of Incode Omni platform.- Returns:
-
setExternalCustomerId
final SessionConfig.Builder setExternalCustomerId(String externalCustomerId)
Assigns an ID from a client's system to this session. Unlike
externalId, this is used purely for referential purposes. If a session exists with thisexternalCustomerId, a new session will be created should the first session be interrupted.Note:
externalCustomerIdtakes precedence overexternalIdif both are specified.- Parameters:
externalCustomerId- ID that is used outside of Incode Omni platform.- Returns:
-
setExternalToken
final SessionConfig.Builder setExternalToken(String externalToken)
Sets the token of the onboarding session. Specify this in order to resume an existing onboarding session without calling the omni/start API. For example, this token could come from a previous invocation of the omni/start API.
- Parameters:
externalToken- External JSON Web Token (JWT) created in an external backend used to resume the onboarding.- Returns:
-
setCustomFields
final SessionConfig.Builder setCustomFields(Map<String, String> customFields)
- Parameters:
customFields- Map of custom fields.- Returns:
-
setDownloadImagesEnabled
final SessionConfig.Builder setDownloadImagesEnabled(Boolean downloadImagesEnabled)
- Parameters:
downloadImagesEnabled- Ensures that ID and Selfie images are downloaded and stored on the device.- Returns:
-
setE2eEncryptionEnabled
final SessionConfig.Builder setE2eEncryptionEnabled(Boolean e2eEncryptionEnabled)
Enable or disable end-to-end encryption (E2EE). After E2EE is enabled, all calls will be encrypted and decrypted on device.
-
setE2eEncryptionAlgorithm
final SessionConfig.Builder setE2eEncryptionAlgorithm(SessionConfig.E2eEncryptionAlgorithm e2eEncryptionAlgorithm)
Sets the end-to-end encryption (E2EE) algorithm used in this session if E2EE is used.
Note: This setting has no effect if
isE2eEncryptionEnabled()isfalse.
-
setMergeSessionRecordings
final SessionConfig.Builder setMergeSessionRecordings(Boolean mergeSessionRecordings)
Enables or disables server-side merging of video recordings from the
IdScanandSelfieScanmodules.- Parameters:
mergeSessionRecordings- A boolean value indicating whether videos should be merged server-side or not.
-
setLanguage
final SessionConfig.Builder setLanguage(String languageCode)
Sets the language for voice consent in
VideoSelfiemodule.- Parameters:
languageCode- Supported values: en-US, es-ES, pt-BR
-
build
final SessionConfig build()
Builds a SessionConfig object with the configured parameters.
- Returns:
SessionConfig object with the specified configuration settings.
-
from
final static SessionConfig.Builder from(SessionConfig existingConfig)
-
-
-
-