TlsVersion Class

public final class TlsVersion
extends ExpandableStringEnum<TlsVersion>

Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').

Field Summary

Modifier and Type Field and Description
static final TlsVersion ONE_ONE

Static value 1.1 for TlsVersion.

static final TlsVersion ONE_TWO

Static value 1.2 for TlsVersion.

static final TlsVersion ONE_ZERO

Static value 1.0 for TlsVersion.

Constructor Summary

Constructor Description
TlsVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TlsVersion value.

Method Summary

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

Creates or finds a TlsVersion from its string representation.

static Collection<TlsVersion> values()

Gets known TlsVersion values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ONE_ONE

public static final TlsVersion ONE_ONE

Static value 1.1 for TlsVersion.

ONE_TWO

public static final TlsVersion ONE_TWO

Static value 1.2 for TlsVersion.

ONE_ZERO

public static final TlsVersion ONE_ZERO

Static value 1.0 for TlsVersion.

Constructor Details

TlsVersion

@Deprecated
public TlsVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TlsVersion value.

Method Details

fromString

public static TlsVersion fromString(String name)

Creates or finds a TlsVersion from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding TlsVersion.

values

public static Collection values()

Gets known TlsVersion values.

Returns:

known TlsVersion values.

Applies to