Package gnu.java.zrtp
Enum ZrtpCodes.ZrtpErrorCodes
- java.lang.Object
-
- java.lang.Enum<ZrtpCodes.ZrtpErrorCodes>
-
- gnu.java.zrtp.ZrtpCodes.ZrtpErrorCodes
-
- All Implemented Interfaces:
Serializable,Comparable<ZrtpCodes.ZrtpErrorCodes>
- Enclosing interface:
- ZrtpCodes
public static enum ZrtpCodes.ZrtpErrorCodes extends Enum<ZrtpCodes.ZrtpErrorCodes>
Error codes according to the ZRTP specification chapter 6.9 GNU ZRTP uses these error codes in two ways: to fill the appropriate field ing the ZRTP Error packet and as sub-code in ZrtpUserCallback#showMessage(). GNU ZRTP uses these error codes also to report received Error packtes, in this case the sub-codes are their negative values. The enumeration member comments are copied from the ZRTP specification.
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description intvalue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZrtpCodes.ZrtpErrorCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static ZrtpCodes.ZrtpErrorCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MalformedPacket
public static final ZrtpCodes.ZrtpErrorCodes MalformedPacket
-
CriticalSWError
public static final ZrtpCodes.ZrtpErrorCodes CriticalSWError
-
UnsuppZRTPVersion
public static final ZrtpCodes.ZrtpErrorCodes UnsuppZRTPVersion
-
HelloCompMismatch
public static final ZrtpCodes.ZrtpErrorCodes HelloCompMismatch
-
UnsuppHashType
public static final ZrtpCodes.ZrtpErrorCodes UnsuppHashType
-
UnsuppCiphertype
public static final ZrtpCodes.ZrtpErrorCodes UnsuppCiphertype
-
UnsuppPKExchange
public static final ZrtpCodes.ZrtpErrorCodes UnsuppPKExchange
-
UnsuppSRTPAuthTag
public static final ZrtpCodes.ZrtpErrorCodes UnsuppSRTPAuthTag
-
UnsuppSASScheme
public static final ZrtpCodes.ZrtpErrorCodes UnsuppSASScheme
-
NoSharedSecret
public static final ZrtpCodes.ZrtpErrorCodes NoSharedSecret
-
DHErrorWrongPV
public static final ZrtpCodes.ZrtpErrorCodes DHErrorWrongPV
-
DHErrorWrongHVI
public static final ZrtpCodes.ZrtpErrorCodes DHErrorWrongHVI
-
SASuntrustedMiTM
public static final ZrtpCodes.ZrtpErrorCodes SASuntrustedMiTM
-
ConfirmHMACWrong
public static final ZrtpCodes.ZrtpErrorCodes ConfirmHMACWrong
-
NonceReused
public static final ZrtpCodes.ZrtpErrorCodes NonceReused
-
EqualZIDHello
public static final ZrtpCodes.ZrtpErrorCodes EqualZIDHello
-
GoClearNotAllowed
public static final ZrtpCodes.ZrtpErrorCodes GoClearNotAllowed
-
IgnorePacket
public static final ZrtpCodes.ZrtpErrorCodes IgnorePacket
-
-
Method Detail
-
values
public static ZrtpCodes.ZrtpErrorCodes[] 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 (ZrtpCodes.ZrtpErrorCodes c : ZrtpCodes.ZrtpErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZrtpCodes.ZrtpErrorCodes valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-