Class ExternalOtpEventsService
java.lang.Object
es.kukenan.smartfi.microservice.firm.service.events.ExternalOtpEventsService
Service for handler external otp events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AmqpControllerAMQP controller.private KafkaControllerKafka Controller.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context for send events. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublishOtpGeneratedEvent(String userId, String otpValue, String deviceId, String operationType, Boolean ignorePrimaryChannel) Publish a Otp generated notification.voidpublishSignaturePendingNotification(String userId, String firmId, String deviceId, String operationType) Publish a Otp generated notification.voidpublishUserPsd2ScaUpdatedEvent(String userId, String tpp, String operationType) Publish a User Psd2 SCA updated event.
-
Field Details
-
amqpController
AMQP controller. -
kafkaController
Kafka Controller. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest context for send events.
-
-
Constructor Details
-
ExternalOtpEventsService
public ExternalOtpEventsService()
-
-
Method Details
-
publishOtpGeneratedEvent
public void publishOtpGeneratedEvent(String userId, String otpValue, String deviceId, String operationType, Boolean ignorePrimaryChannel) Publish a Otp generated notification.- Parameters:
userId- user identification.otpValue- otp generated.deviceId- device unique identifier.operationType- Event operation type Otp generated.ignorePrimaryChannel- indicates if the primary channel should be ignored.
-
publishSignaturePendingNotification
public void publishSignaturePendingNotification(String userId, String firmId, String deviceId, String operationType) Publish a Otp generated notification.- Parameters:
userId- user identification.firmId- signatureId generated.deviceId- device unique identifier.operationType- Event operation type Otp generated.
-
publishUserPsd2ScaUpdatedEvent
Publish a User Psd2 SCA updated event.- Parameters:
userId- user identification.tpp- Tpp identification.operationType- Event operation type Sca Updated.
-