Package gnu.java.zrtp
Enum ZrtpCodes.MessageSeverity
- java.lang.Object
-
- java.lang.Enum<ZrtpCodes.MessageSeverity>
-
- gnu.java.zrtp.ZrtpCodes.MessageSeverity
-
- All Implemented Interfaces:
Serializable,Comparable<ZrtpCodes.MessageSeverity>
- Enclosing interface:
- ZrtpCodes
public static enum ZrtpCodes.MessageSeverity extends Enum<ZrtpCodes.MessageSeverity>
This enum defines the information message severity. The ZRTP implementation issues information messages to inform the user about ongoing processing, unusual behavior, or alerts in case of severe problems. Each main severity code a number of sub-codes exist that specify the exact nature of the problem. An application gets message severity codes and the associated sub-codes via the ZrtpUserCallback#showMessage method. The severity levels and their meaning are:- Info
- keeps the user informed about ongoing processing and security setup. The enumeration InfoCodes defines the sub-codes.
- Warning
- is an information about some security issues, e.g. if an AES 256 encryption is request but only DH 3072 as public key scheme is supported. ZRTP will establish a secure session (SRTP). The enumeration WarningCodes defines the sub-codes.
- Severe
- is used if an error occurred during ZRTP protocol usage. In case of Severe ZRTP will not establish a secure session. The enumeration SevereCodes defines the sub-codes.
- ZrtpError
- shows a ZRTP security problem. Refer to the enumeration ZrtpErrorCodes for sub-codes. GNU ZRTP of course will not establish a secure session.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZrtpCodes.MessageSeverityvalueOf(String name)Returns the enum constant of this type with the specified name.static ZrtpCodes.MessageSeverity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Info
public static final ZrtpCodes.MessageSeverity Info
-
Warning
public static final ZrtpCodes.MessageSeverity Warning
-
Severe
public static final ZrtpCodes.MessageSeverity Severe
-
ZrtpError
public static final ZrtpCodes.MessageSeverity ZrtpError
-
-
Method Detail
-
values
public static ZrtpCodes.MessageSeverity[] 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.MessageSeverity c : ZrtpCodes.MessageSeverity.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.MessageSeverity 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
-
-