java.lang.Object
com.irurueta.authserver.authorization.infrastructure.sms.LoggingSmsSender
All Implemented Interfaces:
SmsSender
Default
SmsSender: sends nothing, it records the message in the
SmsOutbox and logs the masked
recipient. The text (which carries a one-time code) is never logged at INFO.
Field Summary
Fields
Source of the recording instant.
(package private) static final int
Number of trailing digits of the recipient that are logged.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
VISIBLE_DIGITS
static final int VISIBLE_DIGITS
Number of trailing digits of the recipient that are logged.
See Also:
outbox
Records the messages.
clock
private final Clock clock
Source of the recording instant.
Constructor Details
LoggingSmsSender
public LoggingSmsSender ()
Method Details
send
Sends a text message.
Specified by:
send in interface SmsSender
Parameters:
to - recipient.
text - text of the message.