Enum LoginFailedReason

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LoginFailedReason>

    public enum LoginFailedReason
    extends java.lang.Enum<LoginFailedReason>

    Enumeration that defines the reason for a failed login.

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

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACCT_EXPIRED
      StreamLink can not log in to the Liberator because the user's account has expired.
      ALREADY_LOGGED_IN
      StreamLink can not log in to the Liberator because the user is already logged in
      CREDENTIALSERROR
      An error occurred whilst retrieving the credentials that are used to log in to the Liberator
      INVALID_IP
      StreamLink can not log in to the Liberator because the connection attempts is made from an invalid IP address.
      INVALID_PASS
      StreamLink can not log in to the Liberator because the user's password is incorrect.
      INVALID_USER
      StreamLink can not log in to the Liberator because the user's username is incorrect.
      LICENSE_SITE
      StreamLink can not log in to the Liberator due to licensing limitations.
      LICENSE_USER
      StreamLink can not log in to the Liberator due to licensing limitations.
      UNDEFINED
      This value is undefined
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LoginFailedReason valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LoginFailedReason[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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
    • Method Detail

      • values

        public static LoginFailedReason[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LoginFailedReason c : LoginFailedReason.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LoginFailedReason valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null