SasPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. SasPolicy
- com.
Implements
public final class SasPolicy
implements JsonSerializable<SasPolicy>
SasPolicy assigned to the storage account.
Constructor Summary
| Constructor | Description |
|---|---|
| SasPolicy() |
Creates an instance of Sas |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Expiration |
expirationAction()
Get the expiration |
|
static
Sas |
fromJson(JsonReader jsonReader)
Reads an instance of Sas |
| Boolean |
requireUserBoundUserDelegationSas()
Get the require |
|
Policy |
requireUserBoundUserDelegationSasAction()
Get the require |
| String |
sasExpirationPeriod()
Get the sas |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Sas |
withExpirationAction(ExpirationAction expirationAction)
Set the expiration |
|
Sas |
withRequireUserBoundUserDelegationSas(Boolean requireUserBoundUserDelegationSas)
Set the require |
|
Sas |
withRequireUserBoundUserDelegationSasAction(PolicyViolationAction requireUserBoundUserDelegationSasAction)
Set the require |
|
Sas |
withSasExpirationPeriod(String sasExpirationPeriod)
Set the sas |
Methods inherited from java.lang.Object
Constructor Details
SasPolicy
public SasPolicy()
Creates an instance of SasPolicy class.
Method Details
expirationAction
public ExpirationAction expirationAction()
Get the expirationAction property: 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.
Returns:
fromJson
public static SasPolicy fromJson(JsonReader jsonReader)
Reads an instance of SasPolicy from the JsonReader.
Parameters:
Returns:
Throws:
requireUserBoundUserDelegationSas
public Boolean requireUserBoundUserDelegationSas()
Get the requireUserBoundUserDelegationSas property: Indicates whether user delegation SAS (shared access signature) tokens are required to be bound to a specific user. The default interpretation is false for this property.
Returns:
requireUserBoundUserDelegationSasAction
public PolicyViolationAction requireUserBoundUserDelegationSasAction()
Get the requireUserBoundUserDelegationSasAction property: The action to perform when a user delegation SAS (shared access signature) token is not bound to a user as required by requireUserBoundUserDelegationSas.
Returns:
sasExpirationPeriod
public String sasExpirationPeriod()
Get the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExpirationAction
public SasPolicy withExpirationAction(ExpirationAction expirationAction)
Set the expirationAction property: 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.
Parameters:
Returns:
withRequireUserBoundUserDelegationSas
public SasPolicy withRequireUserBoundUserDelegationSas(Boolean requireUserBoundUserDelegationSas)
Set the requireUserBoundUserDelegationSas property: Indicates whether user delegation SAS (shared access signature) tokens are required to be bound to a specific user. The default interpretation is false for this property.
Parameters:
Returns:
withRequireUserBoundUserDelegationSasAction
public SasPolicy withRequireUserBoundUserDelegationSasAction(PolicyViolationAction requireUserBoundUserDelegationSasAction)
Set the requireUserBoundUserDelegationSasAction property: The action to perform when a user delegation SAS (shared access signature) token is not bound to a user as required by requireUserBoundUserDelegationSas.
Parameters:
Returns:
withSasExpirationPeriod
public SasPolicy withSasExpirationPeriod(String sasExpirationPeriod)
Set the sasExpirationPeriod property: The SAS expiration period, DD.HH:MM:SS.
Parameters:
Returns: