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.Builder
setInterviewId(String interviewId)
final SessionConfig.Builder
setConfigurationId(String configurationId)
final SessionConfig.Builder
setValidationModuleList(List<OnboardingValidationModule> validationModuleList)
final SessionConfig.Builder
setRegionIsoCode(String regionIsoCode)
final SessionConfig.Builder
setQueueName(String queueName)
final SessionConfig.Builder
setExternalId(String externalId)
Assigns an ID from a client's system to this session. final SessionConfig.Builder
setExternalCustomerId(String externalCustomerId)
Assigns an ID from a client's system to this session. final SessionConfig.Builder
setExternalToken(String externalToken)
final SessionConfig.Builder
setCustomFields(Map<String, String> customFields)
final SessionConfig.Builder
setDownloadImagesEnabled(Boolean downloadImagesEnabled)
final SessionConfig.Builder
setE2eEncryptionEnabled(Boolean e2eEncryptionEnabled)
Enable or disable end-to-end encryption (E2EE). final SessionConfig.Builder
setMergeSessionRecordings(Boolean mergeSessionRecordings)
Enables or disables server-side merging of video recordings from the IdScan
andSelfieScan
modules.final SessionConfig
build()
Builds a SessionConfig object with the configured parameters. final static SessionConfig.Builder
from(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)
- 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:
externalId
is ignored ifexternalCustomerId
is 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:
externalCustomerId
takes precedence overexternalId
if both are specified.- Parameters:
externalCustomerId
- ID that is used outside of Incode Omni platform.- Returns:
-
setExternalToken
final SessionConfig.Builder setExternalToken(String externalToken)
- Parameters:
externalToken
- External token (created in an external backend) used to resume the onboarding without calling the <a href="https://developer.incode.com/reference/startinterview">omni/start API</a>.- 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.
- Parameters:
e2eEncryptionEnabled
- A boolean value indicating whether end-to-end encryption is enabled.- Returns:
-
setMergeSessionRecordings
final SessionConfig.Builder setMergeSessionRecordings(Boolean mergeSessionRecordings)
Enables or disables server-side merging of video recordings from the
IdScan
andSelfieScan
modules.- Parameters:
mergeSessionRecordings
- A boolean value indicating whether videos should be merged server-side or not.
-
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)
-
-
-
-