java.lang.Object
com.irurueta.authserver.authorization.application.sms.SmsMessages

public final class SmsMessages extends Object
Texts of the SMS messages. SMS bodies are short and machine-oriented, so they are fixed English text.
  • Constructor Details

    • SmsMessages

      private SmsMessages()
      Hidden constructor of a utility class.
  • Method Details

    • verificationCode

      public static String verificationCode(String code, Duration validFor)
      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.