AuthenticationType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. digitaltwins. models. AuthenticationType
- com.
- com.
public final class AuthenticationType
extends ExpandableStringEnum<AuthenticationType>
Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Authentication |
IDENTITY_BASED
Static value Identity |
|
static final
Authentication |
KEY_BASED
Static value Key |
Constructor Summary
| Constructor | Description |
|---|---|
| AuthenticationType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Authentication |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Authentication |
fromString(String name)
Creates or finds a Authentication |
|
static
Collection<Authentication |
values()
Gets known Authentication |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
IDENTITY_BASED
public static final AuthenticationType IDENTITY_BASED
Static value IdentityBased for AuthenticationType.
KEY_BASED
public static final AuthenticationType KEY_BASED
Static value KeyBased for AuthenticationType.
Constructor Details
AuthenticationType
@Deprecated
public AuthenticationType()
Deprecated
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:
Returns:
values
public static Collection<AuthenticationType> values()
Gets known AuthenticationType values.
Returns: