Enum Class OttChannel

java.lang.Object
java.lang.Enum<OttChannel>
com.irurueta.authserver.authorization.domain.ott.OttChannel
All Implemented Interfaces:
Serializable, Comparable<OttChannel>, Constable

public enum OttChannel extends Enum<OttChannel>
Channel through which a one-time token reaches the user.
  • Enum Constant Details

    • EMAIL

      public static final OttChannel EMAIL
      The token is sent to the verified e-mail address of the account.
    • SMS

      public static final OttChannel SMS
      The token is sent as a text message to the verified phone number of the account.
  • Constructor Details

    • OttChannel

      private OttChannel()
  • Method Details

    • values

      public static OttChannel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OttChannel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null