SslProtocol Class

public final class SslProtocol
extends ExpandableStringEnum<SslProtocol>

The protocol of an established TLS connection.

Field Summary

Modifier and Type Field and Description
static final SslProtocol TLSV1

Static value TLSv1 for SslProtocol.

static final SslProtocol TLSV1_1

Static value TLSv1.1 for SslProtocol.

static final SslProtocol TLSV1_2

Static value TLSv1.2 for SslProtocol.

Constructor Summary

Constructor Description
SslProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SslProtocol value.

Method Summary

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

Creates or finds a SslProtocol from its string representation.

static Collection<SslProtocol> values()

Gets known SslProtocol values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

TLSV1

public static final SslProtocol TLSV1

Static value TLSv1 for SslProtocol.

TLSV1_1

public static final SslProtocol TLSV1_1

Static value TLSv1.1 for SslProtocol.

TLSV1_2

public static final SslProtocol TLSV1_2

Static value TLSv1.2 for SslProtocol.

Constructor Details

SslProtocol

@Deprecated
public SslProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SslProtocol value.

Method Details

fromString

public static SslProtocol fromString(String name)

Creates or finds a SslProtocol from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SslProtocol.

values

public static Collection<SslProtocol> values()

Gets known SslProtocol values.

Returns:

known SslProtocol values.

Applies to