Class SessionSpec.Builder
java.lang.Object
com.yoti.api.client.docs.session.create.SessionSpec.Builder
- Enclosing class:
- SessionSpec
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theSessionSpecbased on the values supplied to the builderwithBlockBiometricConsent(boolean blockBiometricConsent) Sets whether to block the collection of biometric consentwithClientSessionTokenTtl(Integer clientSessionTokenTtl) Sets the client session token TTL (time-to-live)withCreateIdentityProfilePreview(boolean createIdentityProfilePreview) Sets whether to create the identity profile previewwithIbvOptions(IbvOptions ibvOptions) Sets the options that define if a session will be required to be performed using In-Branch VerificationwithIdentityProfile(Map<String, Object> identityProfile) Sets the Identity Profile Requirements for the sessionwithImportToken(ImportTokenPayload importToken) Sets theImportTokenPayloadwithNotifications(NotificationConfig notifications) Sets theNotificationConfigwithRequestedCheck(RequestedCheck<?> requestedCheck) Adds aRequestedCheckto the listwithRequestedTask(RequestedTask<?> requestedTask) Adds aRequestedTaskto the listwithRequiredDocument(RequiredDocument requiredDocument) Adds aRequiredDocumentto the listwithResources(ResourceCreationContainer resources) Sets the resources that should be created, when the session is created.withResourcesTtl(Integer resourcesTtl) Sets the resources TTL (time-to-live)withSdkConfig(SdkConfig sdkConfig) Sets theSdkConfigwithSessionDeadline(ZonedDateTime sessionDeadline) Sets the deadline that the session must be completed by.withSubject(Map<String, Object> subject) Sets the subject for which the identity assertion will be performed for the session.withUserTrackingId(String userTrackingId) Sets the user tracking ID
-
Method Details
-
withClientSessionTokenTtl
Sets the client session token TTL (time-to-live)- Parameters:
clientSessionTokenTtl- the client session token TTL- Returns:
- the builder
-
withResourcesTtl
Sets the resources TTL (time-to-live)- Parameters:
resourcesTtl- the resources TTL- Returns:
- the builder
-
withImportToken
Sets theImportTokenPayload- Parameters:
importToken- theImportTokenPayload- Returns:
- the builder
-
withUserTrackingId
Sets the user tracking ID- Parameters:
userTrackingId- the user tracking ID- Returns:
- the builder
-
withNotifications
Sets theNotificationConfig- Parameters:
notifications- theNotificationConfig- Returns:
- the builder
-
withRequestedCheck
Adds aRequestedCheckto the list- Parameters:
requestedCheck- theRequestedCheck- Returns:
- the builder
-
withRequestedTask
Adds aRequestedTaskto the list- Parameters:
requestedTask- theRequestedTask- Returns:
- the builder
-
withSdkConfig
Sets theSdkConfig- Parameters:
sdkConfig- theSdkConfig- Returns:
- the builder
-
withRequiredDocument
Adds aRequiredDocumentto the list- Parameters:
requiredDocument- theRequiredDocument- Returns:
- the builder
-
withBlockBiometricConsent
Sets whether to block the collection of biometric consent- Parameters:
blockBiometricConsent- block collection of biometric consent- Returns:
- the builder
-
withIbvOptions
Sets the options that define if a session will be required to be performed using In-Branch Verification- Parameters:
ibvOptions- the IBV options- Returns:
- the builder
-
withSessionDeadline
Sets the deadline that the session must be completed by.- Parameters:
sessionDeadline- the session deadline- Returns:
- the builder
-
withIdentityProfile
Sets the Identity Profile Requirements for the session- Parameters:
identityProfile- the Identity Profile- Returns:
- the Builder
-
withSubject
Sets the subject for which the identity assertion will be performed for the session.- Parameters:
subject- the subject- Returns:
- the Builder
-
withResources
Sets the resources that should be created, when the session is created.- Parameters:
resources- the resources- Returns:
- the Builder
-
withCreateIdentityProfilePreview
Sets whether to create the identity profile preview- Parameters:
createIdentityProfilePreview- block collection of biometric consent- Returns:
- the builder
-
build
Builds theSessionSpecbased on the values supplied to the builder- Returns:
- the built
SessionSpec
-