public final class AccountSASSignatureValues extends Object
SASQueryParameters
exist because
the former is mutable and a logical representation while the latter is immutable and used to generate actual REST
requests.
Please see
here
for more conceptual information on SAS:
Please see
here for further
descriptions of the parameters, including which are required:Modifier and Type | Field and Description |
---|---|
OffsetDateTime |
expiryTime
The time after which the SAS will no longer work.
|
IPRange |
ipRange
|
String |
permissions
Specifies which operations the SAS user may perform.
|
SASProtocol |
protocol
|
String |
resourceTypes
The values that indicate the resource types accessible with this SAS.
|
String |
services
The values that indicate the services accessible with this SAS.
|
OffsetDateTime |
startTime
When the SAS will take effect.
|
String |
version
If null or empty, this defaults to the service version targeted by this version of the library.
|
Constructor and Description |
---|
AccountSASSignatureValues()
Initializes an
AccountSASSignatureValues object with the version number set to the default and all
other values empty. |
Modifier and Type | Method and Description |
---|---|
SASQueryParameters |
generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
Generates a
SASQueryParameters object which contains all SAS query parameters needed to make an actual
REST request. |
public String version
public SASProtocol protocol
public OffsetDateTime startTime
public OffsetDateTime expiryTime
public String permissions
AccountSASPermission
for help
constructing the permissions string.public IPRange ipRange
public String services
AccountSASService
to
construct this value.public String resourceTypes
AccountSASResourceType
to construct this value.public AccountSASSignatureValues()
AccountSASSignatureValues
object with the version number set to the default and all
other values empty.public SASQueryParameters generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
SASQueryParameters
object which contains all SAS query parameters needed to make an actual
REST request.sharedKeyCredentials
- Credentials for the storage account and corresponding primary or secondary key.SASQueryParameters
Copyright © 2018. All rights reserved.