SecretType Class

public final class SecretType
extends ExpandableStringEnum<SecretType>

Types of secrets supported.

Field Summary

Modifier and Type Field and Description
static final SecretType KEY_VAULT_SECRET_URI

If the secret is stored in an Azure Key Vault.

static final SecretType SECRET_VALUE

If the secret value provided as plain text.

Constructor Summary

Constructor Description
SecretType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SecretType value.

Method Summary

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

Creates or finds a SecretType from its string representation.

static Collection<SecretType> values()

Gets known SecretType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

KEY_VAULT_SECRET_URI

public static final SecretType KEY_VAULT_SECRET_URI

If the secret is stored in an Azure Key Vault.

SECRET_VALUE

public static final SecretType SECRET_VALUE

If the secret value provided as plain text.

Constructor Details

SecretType

@Deprecated
public SecretType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SecretType value.

Method Details

fromString

public static SecretType fromString(String name)

Creates or finds a SecretType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SecretType.

values

public static Collection<SecretType> values()

Gets known SecretType values.

Returns:

known SecretType values.

Applies to