Enum Class LoginFailedReason

java.lang.Object
java.lang.Enum<LoginFailedReason>
com.caplin.streamlink.LoginFailedReason
All Implemented Interfaces:
Serializable, Comparable<LoginFailedReason>, Constable

public enum LoginFailedReason extends Enum<LoginFailedReason>

Enumeration that defines the reason for a failed login.

The LoginFailedReason will be provided by calling getLoginFailReason on a ConnectionStatusEvent.

  • Enum Constant Details

    • INVALID_USER

      public static final LoginFailedReason INVALID_USER
      StreamLink can not log in to the Liberator because the user's username is incorrect.
    • INVALID_PASS

      public static final LoginFailedReason INVALID_PASS
      StreamLink can not log in to the Liberator because the user's password is incorrect.
    • INVALID_IP

      public static final LoginFailedReason INVALID_IP
      StreamLink can not log in to the Liberator because the connection attempts is made from an invalid IP address. *
    • ACCT_EXPIRED

      public static final LoginFailedReason ACCT_EXPIRED
      StreamLink can not log in to the Liberator because the user's account has expired.
    • ALREADY_LOGGED_IN

      public static final LoginFailedReason ALREADY_LOGGED_IN
      StreamLink can not log in to the Liberator because the user is already logged in
    • LICENSE_SITE

      public static final LoginFailedReason LICENSE_SITE
      StreamLink can not log in to the Liberator due to licensing limitations.
    • LICENSE_USER

      public static final LoginFailedReason LICENSE_USER
      StreamLink can not log in to the Liberator due to licensing limitations.
    • CREDENTIALSERROR

      public static final LoginFailedReason CREDENTIALSERROR
      An error occurred whilst retrieving the credentials that are used to log in to the Liberator
    • UNDEFINED

      public static final LoginFailedReason UNDEFINED
      This value is undefined
  • Method Details

    • values

      public static LoginFailedReason[] 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 LoginFailedReason 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