ExpirationAction Class

public final class ExpirationAction
extends ExpandableStringEnum<ExpirationAction>

The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.

Field Summary

Modifier and Type Field and Description
static final ExpirationAction BLOCK

Static value Block for ExpirationAction.

static final ExpirationAction LOG

Static value Log for ExpirationAction.

Constructor Summary

Constructor Description
ExpirationAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ExpirationAction value.

Method Summary

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

Creates or finds a ExpirationAction from its string representation.

static Collection<ExpirationAction> values()

Gets known ExpirationAction values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BLOCK

public static final ExpirationAction BLOCK

Static value Block for ExpirationAction.

LOG

public static final ExpirationAction LOG

Static value Log for ExpirationAction.

Constructor Details

ExpirationAction

@Deprecated
public ExpirationAction()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ExpirationAction value.

Method Details

fromString

public static ExpirationAction fromString(String name)

Creates or finds a ExpirationAction from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ExpirationAction.

values

public static Collection values()

Gets known ExpirationAction values.

Returns:

known ExpirationAction values.

Applies to