Package io.agora.rtc2

Enum Class Constants.RenewTokenErrorCode

java.lang.Object
java.lang.Enum<Constants.RenewTokenErrorCode>
io.agora.rtc2.Constants.RenewTokenErrorCode
All Implemented Interfaces:
Serializable, Comparable<Constants.RenewTokenErrorCode>, Constable
Enclosing class:
Constants

public static enum Constants.RenewTokenErrorCode extends Enum<Constants.RenewTokenErrorCode>
Since:
4.6.0
  • Enum Constant Details

    • RENEW_TOKEN_SUCCESS

      public static final Constants.RenewTokenErrorCode RENEW_TOKEN_SUCCESS
      (0): Token updated successfully.
    • RENEW_TOKEN_FAILURE

      public static final Constants.RenewTokenErrorCode RENEW_TOKEN_FAILURE
      (1): Token update failed. It is recommended to generate a new Token and retry `renewToken`.
    • RENEW_TOKEN_TOKEN_EXPIRED

      public static final Constants.RenewTokenErrorCode RENEW_TOKEN_TOKEN_EXPIRED
      (2): Token update failed because the provided Token has expired. It is recommended to generate a new Token with a longer expiration time and retry `renewToken`.
    • RENEW_TOKEN_INVALID_TOKEN

      public static final Constants.RenewTokenErrorCode RENEW_TOKEN_INVALID_TOKEN
      (3): Token update failed because the provided Token is invalid. Common reasons include: the project has enabled App Certificate in the Agora Console but did not use a Token when joining the channel; the uid specified in `joinChannel` is inconsistent with the uid used when generating the Token; the channel name specified in `joinChannel` is inconsistent with the one used when generating the Token. It is recommended to check the Token generation process, generate a new Token, and retry `renewToken`.
    • RENEW_TOKEN_INVALID_CHANNEL_NAME

      public static final Constants.RenewTokenErrorCode RENEW_TOKEN_INVALID_CHANNEL_NAME
      (4): Token update failed because the channel name in the Token does not match the current channel. It is recommended to check the channel name, generate a new Token, and retry `renewToken`.
    • RENEW_TOKEN_INCONSISTENT_APPID

      public static final Constants.RenewTokenErrorCode RENEW_TOKEN_INCONSISTENT_APPID
      (5): Token update failed because the App ID in the Token does not match the current App ID. It is recommended to check the App ID, generate a new Token, and retry `renewToken`.
    • RENEW_TOKEN_CANCELED_BY_NEW_REQUEST

      public static final Constants.RenewTokenErrorCode RENEW_TOKEN_CANCELED_BY_NEW_REQUEST
      (6): Token update was canceled because a new request was initiated, and the previous request was canceled.
  • Method Details

    • values

      public static Constants.RenewTokenErrorCode[] 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 Constants.RenewTokenErrorCode 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
    • getValue

      public static int getValue(Constants.RenewTokenErrorCode code)
    • fromInt

      public static Constants.RenewTokenErrorCode fromInt(int v)