Package io.agora.rtc2
Enum Class Constants.RenewTokenErrorCode
- All Implemented Interfaces:
Serializable,Comparable<Constants.RenewTokenErrorCode>,Constable
- Enclosing class:
- Constants
- Since:
- 4.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(6): Token update was canceled because a new request was initiated, and the previous request was canceled.(1): Token update failed.(5): Token update failed because the App ID in the Token does not match the current App ID.(4): Token update failed because the channel name in the Token does not match the current channel.(3): Token update failed because the provided Token is invalid.(0): Token updated successfully.(2): Token update failed because the provided Token has expired. -
Method Summary
Modifier and TypeMethodDescriptionfromInt(int v) static intReturns the enum constant of this class with the specified name.static Constants.RenewTokenErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
RENEW_TOKEN_SUCCESS
(0): Token updated successfully. -
RENEW_TOKEN_FAILURE
(1): Token update failed. It is recommended to generate a new Token and retry `renewToken`. -
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
(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
(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
(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
(6): Token update was canceled because a new request was initiated, and the previous request was canceled.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
-
fromInt
-