Class SmsMessages
java.lang.Object
com.irurueta.authserver.authorization.application.sms.SmsMessages
Texts of the SMS messages. SMS bodies are short and machine-oriented, so they are fixed English text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringverificationCode(String code, Duration validFor) Builds the text of a message that carries a one-time code.
-
Constructor Details
-
SmsMessages
private SmsMessages()Hidden constructor of a utility class.
-
-
Method Details
-
verificationCode
Builds the text of a message that carries a one-time code.- Parameters:
code- the clear-text code.validFor- how long the code is valid.- Returns:
- the text.
-