Class NotificationConfig.Builder

java.lang.Object
com.yoti.api.client.docs.session.create.NotificationConfig.Builder
Enclosing class:
NotificationConfig

public static class NotificationConfig.Builder extends Object
Builder to assist in the creation of NotificationConfig.
  • Method Details

    • withAuthTypeBasic

      public NotificationConfig.Builder withAuthTypeBasic()
      Sets the authorization type to BASIC. The authorization token will be Base64 encoded by the backend when sent with notifications.
      Returns:
      the builder
    • withAuthTypeBearer

      public NotificationConfig.Builder withAuthTypeBearer()
      Sets the authorization type to BEARER. The authorization token will be unchanged by the backend when sent with notifications.
      Returns:
      the builder
    • withAuthToken

      public NotificationConfig.Builder withAuthToken(String authToken)
      Sets the authorization token to be included in call-back messages
      Parameters:
      authToken - the authorization token
      Returns:
      the builder
    • withEndpoint

      public NotificationConfig.Builder withEndpoint(String endpoint)
      Sets the endpoint that notifications should be sent to
      Parameters:
      endpoint - the endpoint
      Returns:
      the builder
    • forResourceUpdate

      public NotificationConfig.Builder forResourceUpdate()
      Adds RESOURCE_UPDATE to the list of topics that trigger notification messages
      Returns:
      the builder
    • forTaskCompletion

      public NotificationConfig.Builder forTaskCompletion()
      Adds TASK_COMPLETION to the list of topics that trigger notification messages
      Returns:
      the builder
    • forCheckCompletion

      public NotificationConfig.Builder forCheckCompletion()
      Adds CHECK_COMPLETION to the list of topics that trigger notification messages
      Returns:
      the builder
    • forSessionCompletion

      public NotificationConfig.Builder forSessionCompletion()
      Adds SESSION_COMPLETION to the list of topics that trigger notification messages
      Returns:
      the builder
    • forClientSessionCompletion

      public NotificationConfig.Builder forClientSessionCompletion()
      Adds CLIENT_SESSION_TOKEN_DELETED to the list of topics that trigger notification messages
      Returns:
      the builder
    • withTopic

      public NotificationConfig.Builder withTopic(String topicName)
      Adds a topic to the list of topics that trigger notification messages
      Parameters:
      topicName - the topic name
      Returns:
      the builder
    • build

      public NotificationConfig build()