Package com.azure.storage.file.share.sas
Class ShareServiceSasQueryParameters
- java.lang.Object
-
- com.azure.storage.common.sas.BaseSasQueryParameters
-
- com.azure.storage.file.share.sas.ShareServiceSasQueryParameters
-
@Deprecated public final class ShareServiceSasQueryParameters extends BaseSasQueryParameters
Deprecated.Please use the generateSas method on the desired file/share client after initializingShareServiceSasSignatureValues.Represents the components that make up an Azure Storage SAS' query parameters. This type is not constructed directly by the user; it is only generated by theShareServiceSasSignatureValuestype. Once generated, it can be set on aShareFileClientBuilderobject to be constructed as part of a URL or it can be encoded into aStringand 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.
-
-
Field Summary
-
Fields inherited from class com.azure.storage.common.sas.BaseSasQueryParameters
expiryTime, permissions, protocol, sasIpRange, signature, startTime, version
-
-
Constructor Summary
Constructors Constructor Description ShareServiceSasQueryParameters(Map<String,String[]> queryParamsMap, boolean removeSasParametersFromMap)Deprecated.Please useShareServiceSasSignatureValues
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringencode()Deprecated.Please use the generateSas method on the desired file/share client after initializingShareServiceSasSignatureValues.StringgetCacheControl()Deprecated.Please useShareServiceSasSignatureValuesStringgetContentDisposition()Deprecated.Please useShareServiceSasSignatureValuesStringgetContentEncoding()Deprecated.Please useShareServiceSasSignatureValuesStringgetContentLanguage()Deprecated.Please useShareServiceSasSignatureValuesStringgetContentType()Deprecated.Please useShareServiceSasSignatureValuesStringgetIdentifier()Deprecated.Please useShareServiceSasSignatureValuesStringgetResource()Deprecated.Please useShareServiceSasSignatureValues-
Methods inherited from class com.azure.storage.common.sas.BaseSasQueryParameters
formatQueryParameterDate, getExpiryTime, getPermissions, getProtocol, getQueryParameter, getQueryParameter, getSasIpRange, getSignature, getStartTime, getVersion, tryAppendQueryParameter
-
-
-
-
Constructor Detail
-
ShareServiceSasQueryParameters
@Deprecated public ShareServiceSasQueryParameters(Map<String,String[]> queryParamsMap, boolean removeSasParametersFromMap)
Deprecated.Please useShareServiceSasSignatureValuesCreates a newShareServiceSasQueryParametersobject.- Parameters:
queryParamsMap- All query parameters for the request as key-value pairsremoveSasParametersFromMap- Whentrue, the SAS query parameters will be removed from queryParamsMap
-
-
Method Detail
-
getIdentifier
@Deprecated public String getIdentifier()
Deprecated.Please useShareServiceSasSignatureValues- Returns:
- The signed identifier (only for
ShareServiceSasSignatureValues) ornull. Please see here for more information.
-
getResource
@Deprecated public String getResource()
Deprecated.Please useShareServiceSasSignatureValues- Returns:
- The storage share or file (only for
ShareServiceSasSignatureValues).
-
getCacheControl
@Deprecated public String getCacheControl()
Deprecated.Please useShareServiceSasSignatureValues- Returns:
- The Cache-Control header value when a client accesses the resource with this sas token.
-
getContentDisposition
@Deprecated public String getContentDisposition()
Deprecated.Please useShareServiceSasSignatureValues- Returns:
- The Content-Disposition header value when a client accesses the resource with this sas token.
-
getContentEncoding
@Deprecated public String getContentEncoding()
Deprecated.Please useShareServiceSasSignatureValues- Returns:
- The Content-Encoding header value when a client accesses the resource with this sas token.
-
getContentLanguage
@Deprecated public String getContentLanguage()
Deprecated.Please useShareServiceSasSignatureValues- Returns:
- The Content-Language header value when a client accesses the resource with this sas token.
-
getContentType
@Deprecated public String getContentType()
Deprecated.Please useShareServiceSasSignatureValues- Returns:
- The Content-Type header value when a client accesses the resource with this sas token.
-
encode
@Deprecated public String encode()
Deprecated.Please use the generateSas method on the desired file/share client after initializingShareServiceSasSignatureValues.Encodes all SAS query parameters into a string that can be appended to a URL.- Specified by:
encodein classBaseSasQueryParameters- Returns:
- A
Stringrepresenting the SAS query parameters.
-
-