Package io.pravega.shared.protocol.netty
Enum WireCommands.AuthTokenCheckFailed.ErrorCode
- java.lang.Object
-
- java.lang.Enum<WireCommands.AuthTokenCheckFailed.ErrorCode>
-
- io.pravega.shared.protocol.netty.WireCommands.AuthTokenCheckFailed.ErrorCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WireCommands.AuthTokenCheckFailed.ErrorCode>
- Enclosing class:
- WireCommands.AuthTokenCheckFailed
public static enum WireCommands.AuthTokenCheckFailed.ErrorCode extends java.lang.Enum<WireCommands.AuthTokenCheckFailed.ErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TOKEN_CHECK_FAILEDTOKEN_EXPIREDUNSPECIFIED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()static WireCommands.AuthTokenCheckFailed.ErrorCodevalueOf(int code)Returns the enum constant of this type with the specified name.static WireCommands.AuthTokenCheckFailed.ErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WireCommands.AuthTokenCheckFailed.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final WireCommands.AuthTokenCheckFailed.ErrorCode UNSPECIFIED
-
TOKEN_CHECK_FAILED
public static final WireCommands.AuthTokenCheckFailed.ErrorCode TOKEN_CHECK_FAILED
-
TOKEN_EXPIRED
public static final WireCommands.AuthTokenCheckFailed.ErrorCode TOKEN_EXPIRED
-
-
Method Detail
-
values
public static WireCommands.AuthTokenCheckFailed.ErrorCode[] 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 (WireCommands.AuthTokenCheckFailed.ErrorCode c : WireCommands.AuthTokenCheckFailed.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WireCommands.AuthTokenCheckFailed.ErrorCode 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 namejava.lang.NullPointerException- if the argument is null
-
valueOf
public static WireCommands.AuthTokenCheckFailed.ErrorCode valueOf(int code)
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:
code- 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 namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
-
-