Interface JSentinelNotificationSender

All Known Implementing Classes:
LoggingNotificationSender
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@ExperimentalJSentinelApi @FunctionalInterface public interface JSentinelNotificationSender
Account-lifecycle notification dispatcher.

PasswordResetService and EmailVerificationService call send(notification) after persisting a token (or marking one consumed). Implementations own the transport — a mail provider adapter, an SMS gateway, an audit-only log line. The security-core default is LoggingNotificationSender, intentionally side-effect-free so demos and tests don't accidentally reach out over the network.

Implementations must be thread-safe and must not throw — a notification failure must never block the lifecycle flow that emitted it. Internal failures (e.g. an unreachable SMTP relay) are an implementation concern; surface them via the implementation's own logging / monitoring.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Dispatches the notification.
  • Method Details

    • send

      void send(JSentinelNotification notification)
      Dispatches the notification. Must not throw.
      Parameters:
      notification - non-null payload