Class NotificationConfig.Builder
java.lang.Object
com.yoti.api.client.docs.session.create.NotificationConfig.Builder
- Enclosing class:
- NotificationConfig
Builder to assist in the creation of
NotificationConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Adds CHECK_COMPLETION to the list of topics that trigger notification messagesAdds CLIENT_SESSION_TOKEN_DELETED to the list of topics that trigger notification messagesAdds RESOURCE_UPDATE to the list of topics that trigger notification messagesAdds SESSION_COMPLETION to the list of topics that trigger notification messagesAdds TASK_COMPLETION to the list of topics that trigger notification messageswithAuthToken(String authToken) Sets the authorization token to be included in call-back messagesSets the authorization type to BASIC.Sets the authorization type to BEARER.withEndpoint(String endpoint) Sets the endpoint that notifications should be sent toAdds a topic to the list of topics that trigger notification messages
-
Method Details
-
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
Sets the authorization type to BEARER. The authorization token will be unchanged by the backend when sent with notifications.- Returns:
- the builder
-
withAuthToken
Sets the authorization token to be included in call-back messages- Parameters:
authToken- the authorization token- Returns:
- the builder
-
withEndpoint
Sets the endpoint that notifications should be sent to- Parameters:
endpoint- the endpoint- Returns:
- the builder
-
forResourceUpdate
Adds RESOURCE_UPDATE to the list of topics that trigger notification messages- Returns:
- the builder
-
forTaskCompletion
Adds TASK_COMPLETION to the list of topics that trigger notification messages- Returns:
- the builder
-
forCheckCompletion
Adds CHECK_COMPLETION to the list of topics that trigger notification messages- Returns:
- the builder
-
forSessionCompletion
Adds SESSION_COMPLETION to the list of topics that trigger notification messages- Returns:
- the builder
-
forClientSessionCompletion
Adds CLIENT_SESSION_TOKEN_DELETED to the list of topics that trigger notification messages- Returns:
- the builder
-
withTopic
Adds a topic to the list of topics that trigger notification messages- Parameters:
topicName- the topic name- Returns:
- the builder
-
build
-