public final class ServiceSASSignatureValues 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
more details on each value, including which are required.Modifier and Type | Field and Description |
---|---|
String |
blobName
The name of the container the SAS user may access.
|
String |
cacheControl
The cache-control header for the SAS.
|
String |
containerName
The name of the container the SAS user may access.
|
String |
contentDisposition
The content-disposition header for the SAS.
|
String |
contentEncoding
The content-encoding header for the SAS.
|
String |
contentLanguage
The content-language header for the SAS.
|
String |
contentType
The content-type header for the SAS.
|
OffsetDateTime |
expiryTime
The time after which the SAS will no longer work.
|
String |
identifier
The name of the access policy on the container this SAS references if any.
|
IPRange |
ipRange
|
String |
permissions
Please refer to either
ContainerSASPermission or BlobSASPermission depending on the resource
being accessed for help constructing the permissions string. |
SASProtocol |
protocol
|
OffsetDateTime |
startTime
When the SAS will take effect.
|
String |
version
The version of the service this SAS will target.
|
Constructor and Description |
---|
ServiceSASSignatureValues()
Creates an object with empty values for all fields.
|
Modifier and Type | Method and Description |
---|---|
SASQueryParameters |
generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
Uses an account's shared key credential to sign these signature values to produce the proper SAS query
parameters.
|
public String version
public SASProtocol protocol
public OffsetDateTime startTime
public OffsetDateTime expiryTime
public String permissions
ContainerSASPermission
or BlobSASPermission
depending on the resource
being accessed for help constructing the permissions string.public IPRange ipRange
public String containerName
public String blobName
public String identifier
public String cacheControl
public String contentDisposition
public String contentEncoding
public String contentLanguage
public String contentType
public ServiceSASSignatureValues()
public SASQueryParameters generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
sharedKeyCredentials
- A SharedKeyCredentials
object used to sign the SAS values.SASQueryParameters
Copyright © 2018. All rights reserved.