- java.lang.Object
-
- java.lang.Enum<TlsConstants.ContentType>
-
- net.luminis.tls.TlsConstants.ContentType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TlsConstants.ContentType>
- Enclosing class:
- TlsConstants
public static enum TlsConstants.ContentType extends java.lang.Enum<TlsConstants.ContentType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description alertapplication_datachange_cipher_spechandshakeinvalid
-
Field Summary
Fields Modifier and Type Field Description bytevalue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TlsConstants.ContentTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TlsConstants.ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
invalid
public static final TlsConstants.ContentType invalid
-
change_cipher_spec
public static final TlsConstants.ContentType change_cipher_spec
-
alert
public static final TlsConstants.ContentType alert
-
handshake
public static final TlsConstants.ContentType handshake
-
application_data
public static final TlsConstants.ContentType application_data
-
-
Method Detail
-
values
public static TlsConstants.ContentType[] 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 (TlsConstants.ContentType c : TlsConstants.ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TlsConstants.ContentType 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
-
-