java.lang.Object
com.irurueta.authserver.authorization.infrastructure.sms.TwilioSmsSender
All Implemented Interfaces:
SmsSender

public class TwilioSmsSender extends Object implements SmsSender
SmsSender that sends through Twilio. Every failure becomes a SmsDeliveryException without the recipient or the text.
  • Field Details

  • Constructor Details

    • TwilioSmsSender

      public TwilioSmsSender()
  • Method Details

    • send

      public void send(PhoneNumber to, String text)
      Description copied from interface: SmsSender
      Sends a text message.
      Specified by:
      send in interface SmsSender
      Parameters:
      to - recipient.
      text - text of the message.