Partage via


AuthenticationType Class

public final class AuthenticationType
extends ExpandableStringEnum<AuthenticationType>

An enumeration of possible authentication types when connecting.

Field Summary

Modifier and Type Field and Description
static final AuthenticationType ACTIVE_DIRECTORY_INTEGRATED

Static value ActiveDirectoryIntegrated for AuthenticationType.

static final AuthenticationType ACTIVE_DIRECTORY_PASSWORD

Static value ActiveDirectoryPassword for AuthenticationType.

static final AuthenticationType NONE

Static value None for AuthenticationType.

static final AuthenticationType SQL_AUTHENTICATION

Static value SqlAuthentication for AuthenticationType.

static final AuthenticationType WINDOWS_AUTHENTICATION

Static value WindowsAuthentication for AuthenticationType.

Constructor Summary

Constructor Description
AuthenticationType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AuthenticationType value.

Method Summary

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

Creates or finds a AuthenticationType from its string representation.

static Collection<AuthenticationType> values()

Gets known AuthenticationType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ACTIVE_DIRECTORY_INTEGRATED

public static final AuthenticationType ACTIVE_DIRECTORY_INTEGRATED

Static value ActiveDirectoryIntegrated for AuthenticationType.

ACTIVE_DIRECTORY_PASSWORD

public static final AuthenticationType ACTIVE_DIRECTORY_PASSWORD

Static value ActiveDirectoryPassword for AuthenticationType.

NONE

public static final AuthenticationType NONE

Static value None for AuthenticationType.

SQL_AUTHENTICATION

public static final AuthenticationType SQL_AUTHENTICATION

Static value SqlAuthentication for AuthenticationType.

WINDOWS_AUTHENTICATION

public static final AuthenticationType WINDOWS_AUTHENTICATION

Static value WindowsAuthentication for AuthenticationType.

Constructor Details

AuthenticationType

@Deprecated
public AuthenticationType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AuthenticationType value.

Method Details

fromString

public static AuthenticationType fromString(String name)

Creates or finds a AuthenticationType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AuthenticationType.

values

public static Collection<AuthenticationType> values()

Gets known AuthenticationType values.

Returns:

known AuthenticationType values.

Applies to