Share via


SigningKey Class

public final class SigningKey
extends ExpandableStringEnum<SigningKey>

The Map account key to use for signing. Picking `primaryKey` or `secondaryKey` will use the Map account Shared Keys, and using `managedIdentity` will use the auto-renewed private key to sign the SAS.

Field Summary

Modifier and Type Field and Description
static final SigningKey MANAGED_IDENTITY

Static value managedIdentity for SigningKey.

static final SigningKey PRIMARY_KEY

Static value primaryKey for SigningKey.

static final SigningKey SECONDARY_KEY

Static value secondaryKey for SigningKey.

Constructor Summary

Constructor Description
SigningKey()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SigningKey value.

Method Summary

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

Creates or finds a SigningKey from its string representation.

static Collection<SigningKey> values()

Gets known SigningKey values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

MANAGED_IDENTITY

public static final SigningKey MANAGED_IDENTITY

Static value managedIdentity for SigningKey.

PRIMARY_KEY

public static final SigningKey PRIMARY_KEY

Static value primaryKey for SigningKey.

SECONDARY_KEY

public static final SigningKey SECONDARY_KEY

Static value secondaryKey for SigningKey.

Constructor Details

SigningKey

@Deprecated
public SigningKey()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SigningKey value.

Method Details

fromString

public static SigningKey fromString(String name)

Creates or finds a SigningKey from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SigningKey.

values

public static Collection<SigningKey> values()

Gets known SigningKey values.

Returns:

known SigningKey values.

Applies to