- java.lang.Object
-
- java.lang.Enum<ClientHello.PskKeyEstablishmentMode>
-
- net.luminis.tls.handshake.ClientHello.PskKeyEstablishmentMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ClientHello.PskKeyEstablishmentMode>
- Enclosing class:
- ClientHello
public static enum ClientHello.PskKeyEstablishmentMode extends java.lang.Enum<ClientHello.PskKeyEstablishmentMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description bothnonePSKonlyPSKwithDHE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientHello.PskKeyEstablishmentModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ClientHello.PskKeyEstablishmentMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
none
public static final ClientHello.PskKeyEstablishmentMode none
-
PSKonly
public static final ClientHello.PskKeyEstablishmentMode PSKonly
-
PSKwithDHE
public static final ClientHello.PskKeyEstablishmentMode PSKwithDHE
-
both
public static final ClientHello.PskKeyEstablishmentMode both
-
-
Method Detail
-
values
public static ClientHello.PskKeyEstablishmentMode[] 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 (ClientHello.PskKeyEstablishmentMode c : ClientHello.PskKeyEstablishmentMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientHello.PskKeyEstablishmentMode 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
-
-