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.
Constructor and Description |
---|
ServiceSASSignatureValues()
Creates an object with empty values for all fields.
|
Modifier and Type | Method 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.
|
SASQueryParameters |
generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
Uses an account's shared key credential to sign these signature values to produce the proper SAS query
parameters.
|
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.
|
ServiceSASSignatureValues |
withBlobName(String blobName)
The name of the container the SAS user may access.
|
ServiceSASSignatureValues |
withCacheControl(String cacheControl)
The cache-control header for the SAS.
|
ServiceSASSignatureValues |
withContainerName(String containerName)
The name of the container the SAS user may access.
|
ServiceSASSignatureValues |
withContentDisposition(String contentDisposition)
The content-disposition header for the SAS.
|
ServiceSASSignatureValues |
withContentEncoding(String contentEncoding)
The content-encoding header for the SAS.
|
ServiceSASSignatureValues |
withContentLanguage(String contentLanguage)
The content-language header for the SAS.
|
ServiceSASSignatureValues |
withContentType(String contentType)
The content-type header for the SAS.
|
ServiceSASSignatureValues |
withExpiryTime(OffsetDateTime expiryTime)
The time after which the SAS will no longer work.
|
ServiceSASSignatureValues |
withIdentifier(String identifier)
The name of the access policy on the container this SAS references if any.
|
ServiceSASSignatureValues |
withIpRange(IPRange ipRange)
|
ServiceSASSignatureValues |
withPermissions(String permissions)
Please refer to either
ContainerSASPermission or BlobSASPermission depending on the resource
being accessed for help constructing the permissions string. |
ServiceSASSignatureValues |
withProtocol(SASProtocol protocol)
|
ServiceSASSignatureValues |
withStartTime(OffsetDateTime startTime)
When the SAS will take effect.
|
ServiceSASSignatureValues |
withVersion(String version)
The version of the service this SAS will target.
|
public ServiceSASSignatureValues()
public String version()
public ServiceSASSignatureValues withVersion(String version)
public SASProtocol protocol()
public ServiceSASSignatureValues withProtocol(SASProtocol protocol)
public OffsetDateTime startTime()
public ServiceSASSignatureValues withStartTime(OffsetDateTime startTime)
public OffsetDateTime expiryTime()
public ServiceSASSignatureValues withExpiryTime(OffsetDateTime expiryTime)
public String permissions()
ContainerSASPermission
or BlobSASPermission
depending on the resource
being accessed for help constructing the permissions string.public ServiceSASSignatureValues withPermissions(String permissions)
ContainerSASPermission
or BlobSASPermission
depending on the resource
being accessed for help constructing the permissions string.public IPRange ipRange()
public ServiceSASSignatureValues withIpRange(IPRange ipRange)
public String containerName()
public ServiceSASSignatureValues withContainerName(String containerName)
public String blobName()
public ServiceSASSignatureValues withBlobName(String blobName)
public String identifier()
public ServiceSASSignatureValues withIdentifier(String identifier)
public String cacheControl()
public ServiceSASSignatureValues withCacheControl(String cacheControl)
public String contentDisposition()
public ServiceSASSignatureValues withContentDisposition(String contentDisposition)
public String contentEncoding()
public ServiceSASSignatureValues withContentEncoding(String contentEncoding)
public String contentLanguage()
public ServiceSASSignatureValues withContentLanguage(String contentLanguage)
public String contentType()
public ServiceSASSignatureValues withContentType(String contentType)
public SASQueryParameters generateSASQueryParameters(SharedKeyCredentials sharedKeyCredentials)
sharedKeyCredentials
- A SharedKeyCredentials
object used to sign the SAS values.SASQueryParameters
This documentation was released into the public domain.