ProtocolType Class

public final class ProtocolType
extends ExpandableStringEnum<ProtocolType>

Defines the TLS extension protocol that is used for secure delivery.

Field Summary

Modifier and Type Field and Description
static final ProtocolType IPBASED

Static value IPBased for ProtocolType.

static final ProtocolType SERVER_NAME_INDICATION

Static value ServerNameIndication for ProtocolType.

Constructor Summary

Constructor Description
ProtocolType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ProtocolType value.

Method Summary

Modifier and Type Method and Description
static ProtocolType fromString(String name)

Creates or finds a ProtocolType from its string representation.

static Collection<ProtocolType> values()

Gets known ProtocolType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

IPBASED

public static final ProtocolType IPBASED

Static value IPBased for ProtocolType.

SERVER_NAME_INDICATION

public static final ProtocolType SERVER_NAME_INDICATION

Static value ServerNameIndication for ProtocolType.

Constructor Details

ProtocolType

@Deprecated
public ProtocolType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ProtocolType value.

Method Details

fromString

public static ProtocolType fromString(String name)

Creates or finds a ProtocolType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ProtocolType.

values

public static Collection values()

Gets known ProtocolType values.

Returns:

known ProtocolType values.

Applies to