ExpirationAction Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. storage. models. ExpirationAction
- com.
- com.
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
Expiration |
BLOCK
Static value Block for Expiration |
static final
Expiration |
LOG
Static value Log for Expiration |
Constructor Summary
Constructor | Description |
---|---|
ExpirationAction() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Expiration |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Expiration |
fromString(String name)
Creates or finds a Expiration |
static
Collection<Expiration |
values()
Gets known Expiration |
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
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:
Returns:
values
public static Collection
Gets known ExpirationAction values.
Returns:
Applies to
Azure SDK for Java