All Classes and Interfaces
Class
Description
PhoneCountryResolver over libphonenumber: the region of an E.164 number.PhoneNormalizer backed by Google libphonenumber: accepts only valid numbers and never throws.Stops the startup when no SMS gateway is configured: none of the profiles that provide an
SmsSender
(twilio, sns, or dev / test for the logging one) is active.A text message recorded by the
SmsOutbox.Wires the phone normaliser and the logging
SmsSender of development and tests.Bounded, thread-safe, in-memory record of the messages the
LoggingSmsSender "sent", so the development
inbox can show them, which reads it through the domain port SmsInbox.Settings of the
SmsOutbox.Wires the Amazon SNS sender when the
sns profile is active.SmsSender that publishes directly to a phone number through Amazon SNS.Wires the Twilio sender when the
twilio profile is active (and SNS is not, so that never two
SmsSender beans exist).Thin wrapper over the Twilio SDK, so the sender can be unit-tested with a mock.
Twilio credentials and sender, bound from the environment variables
AUTHSERVER_SMS_TWILIO_* only; no value
is ever written in a file of this repository.SmsSender that sends through Twilio.