SslPreference Class

public final class SslPreference
extends ExpandableStringEnum<SslPreference>

Gets or sets certificate preference if secure communication is enabled.

Field Summary

Modifier and Type Field and Description
static final SslPreference DISABLED

Static value Disabled for SslPreference.

static final SslPreference ROOT_CERTIFICATE

Static value RootCertificate for SslPreference.

static final SslPreference SERVER_CERTIFICATE

Static value ServerCertificate for SslPreference.

Constructor Summary

Constructor Description
SslPreference()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SslPreference value.

Method Summary

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

Creates or finds a SslPreference from its string representation.

static Collection<SslPreference> values()

Gets known SslPreference values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISABLED

public static final SslPreference DISABLED

Static value Disabled for SslPreference.

ROOT_CERTIFICATE

public static final SslPreference ROOT_CERTIFICATE

Static value RootCertificate for SslPreference.

SERVER_CERTIFICATE

public static final SslPreference SERVER_CERTIFICATE

Static value ServerCertificate for SslPreference.

Constructor Details

SslPreference

@Deprecated
public SslPreference()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SslPreference value.

Method Details

fromString

public static SslPreference fromString(String name)

Creates or finds a SslPreference from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SslPreference.

values

public static Collection<SslPreference> values()

Gets known SslPreference values.

Returns:

known SslPreference values.

Applies to