public final class BlobServiceSasQueryParameters extends BaseSasQueryParameters
BlobServiceSasSignatureValues
type. Once generated, it can be set on
a BlobClientBuilder
object to be constructed as part of a URL or it can be encoded into a String
and
appended to a URL directly (though caution should be taken here in case there are existing query parameters, which
might affect the appropriate means of appending these query parameters). NOTE: Instances of this class are immutable
to ensure thread safety.expiryTime, permissions, protocol, sasIpRange, signature, startTime, version
Constructor and Description |
---|
BlobServiceSasQueryParameters(Map<String,String[]> queryParamsMap,
boolean removeSASParametersFromMap)
Creates a new
BlobServiceSasQueryParameters object. |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes all SAS query parameters into a string that can be appended to a URL.
|
String |
getCacheControl() |
String |
getContentDisposition() |
String |
getContentEncoding() |
String |
getContentLanguage() |
String |
getContentType() |
String |
getIdentifier() |
OffsetDateTime |
getKeyExpiry() |
String |
getKeyObjectId() |
String |
getKeyService() |
OffsetDateTime |
getKeyStart() |
String |
getKeyTenantId() |
String |
getKeyVersion() |
String |
getResource() |
formatQueryParameterDate, getExpiryTime, getPermissions, getProtocol, getQueryParameter, getQueryParameter, getSasIpRange, getSignature, getStartTime, getVersion, tryAppendQueryParameter
public BlobServiceSasQueryParameters(Map<String,String[]> queryParamsMap, boolean removeSASParametersFromMap)
BlobServiceSasQueryParameters
object.queryParamsMap
- All query parameters for the request as key-value pairsremoveSASParametersFromMap
- When true
, the SAS query parameters will be removed from
queryParamsMappublic String getIdentifier()
BlobServiceSasSignatureValues
) or null
. Please see
here
for more information.public String getResource()
BlobServiceSasSignatureValues
).public String getCacheControl()
public String getContentDisposition()
public String getContentEncoding()
public String getContentLanguage()
public String getContentType()
public String getKeyObjectId()
public String getKeyTenantId()
public OffsetDateTime getKeyStart()
public OffsetDateTime getKeyExpiry()
public String getKeyService()
public String getKeyVersion()
public String encode()
encode
in class BaseSasQueryParameters
String
representing all SAS query parameters.Copyright © 2019 Microsoft Corporation. All rights reserved.