public enum ExtendedMasterSecretMode extends Enum<ExtendedMasterSecretMode>
See RFC 7627 for additional details.
RFC7925, 16. Session Hash recommends to use this extension. Please, obey the different behavior on session resumption according RFC 7627, 5.3. Client and Server Behavior: Abbreviated Handshake, if one side doesn't support this extension.
Enum Constant and Description |
---|
ENABLED
Enable the use of the extended master secret.
|
NONE
Disable the use of the extended master secret.
|
OPTIONAL
Optionally use the extended master secret.
|
REQUIRED
Requires the use of the extended master secret.
|
Modifier and Type | Method and Description |
---|---|
boolean |
is(ExtendedMasterSecretMode mode)
Checks, if provided mode is contained in this mode.
|
static ExtendedMasterSecretMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExtendedMasterSecretMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExtendedMasterSecretMode NONE
public static final ExtendedMasterSecretMode OPTIONAL
public static final ExtendedMasterSecretMode ENABLED
public static final ExtendedMasterSecretMode REQUIRED
public static ExtendedMasterSecretMode[] values()
for (ExtendedMasterSecretMode c : ExtendedMasterSecretMode.values()) System.out.println(c);
public static ExtendedMasterSecretMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean is(ExtendedMasterSecretMode mode)
mode
- mode to be comparedtrue
, if the Enum.ordinal()
of this mode is larger or
equal to the one of the provided mode. false
, otherwise.Copyright © 2021 Eclipse Foundation. All rights reserved.