Package com.azure.storage.common.sas
Class BaseSasQueryParameters
java.lang.Object
com.azure.storage.common.sas.BaseSasQueryParameters
- Direct Known Subclasses:
AccountSasQueryParameters
Deprecated.
Please use the generateSas method on the desired client after initializing the appropriate
SasSignatureValues object.
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 the SASSignatureValues type. Once generated, it can be set on a ClientBuilder
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OffsetDateTimeDeprecated.The end time for the SAS's validity.protected StringDeprecated.The permissions of the SAS.protected SasProtocolDeprecated.The allowed HTTP/HTTPS protocols.protected SasIpRangeDeprecated.The IP range that the SAS validates.protected StringDeprecated.The signature of the SAS.protected OffsetDateTimeDeprecated.The start time for the SAS's validity.protected StringDeprecated.The Storage version. -
Constructor Summary
ConstructorsConstructorDescriptionBaseSasQueryParameters(String version, SasProtocol protocol, OffsetDateTime startTime, OffsetDateTime expiryTime, SasIpRange sasIpRange, String permissions, String signature) Deprecated.Please use SasSignatureValuesBaseSasQueryParameters(Map<String, String[]> queryParamsMap, boolean removeSASParametersFromMap) Deprecated.Please use SasSignatureValues -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringencode()Deprecated.Please use the generateSas method on the desired client after initializing the appropriate SasSignatureValues object.protected StringformatQueryParameterDate(OffsetDateTime dateTime) Deprecated.Please use SasSignatureValuesDeprecated.Please use SasSignatureValuesDeprecated.Please use SasSignatureValuesDeprecated.Please use SasSignatureValuesprotected StringgetQueryParameter(Map<String, String[]> parameters, String name, boolean remove) Deprecated.Please use SasSignatureValuesprotected <T> TgetQueryParameter(Map<String, String[]> parameters, String name, boolean remove, Function<String, T> converter) Deprecated.Please use SasSignatureValuesDeprecated.Please use SasSignatureValuesDeprecated.Please use SasSignatureValuesDeprecated.Please use SasSignatureValuesDeprecated.Please use SasSignatureValuesprotected voidtryAppendQueryParameter(StringBuilder sb, String param, Object value) Deprecated.Please use SasSignatureValues
-
Field Details
-
version
Deprecated.The Storage version. -
protocol
Deprecated.The allowed HTTP/HTTPS protocols. -
startTime
Deprecated.The start time for the SAS's validity. -
expiryTime
Deprecated.The end time for the SAS's validity. -
sasIpRange
Deprecated.The IP range that the SAS validates. -
permissions
Deprecated.The permissions of the SAS. -
signature
Deprecated.The signature of the SAS.
-
-
Constructor Details
-
BaseSasQueryParameters
@Deprecated public BaseSasQueryParameters(Map<String, String[]> queryParamsMap, boolean removeSASParametersFromMap) Deprecated.Please use SasSignatureValuesCreates a newBaseSasQueryParametersobject.- Parameters:
queryParamsMap- All query parameters for the request as key-value pairsremoveSASParametersFromMap- Whentrue, the SAS query parameters will be removed from queryParamsMap
-
BaseSasQueryParameters
@Deprecated public BaseSasQueryParameters(String version, SasProtocol protocol, OffsetDateTime startTime, OffsetDateTime expiryTime, SasIpRange sasIpRange, String permissions, String signature) Deprecated.Please use SasSignatureValuesCreates a newBaseSasQueryParametersobject. These objects are only created internally by SASSignatureValues classes.- Parameters:
version- AStringrepresenting the storage version.protocol- AStringrepresenting the allowed HTTP protocol(s) ornull.startTime- Ajava.util.Daterepresenting the start time for this SAS token ornull.expiryTime- Ajava.util.Daterepresenting the expiry time for this SAS token.sasIpRange- ASasIpRangerepresenting the range of valid IP addresses for this SAS token ornull.permissions- AStringrepresenting the storage permissions ornull.signature- AStringrepresenting the signature for the SAS token.
-
-
Method Details
-
getQueryParameter
@Deprecated protected String getQueryParameter(Map<String, String[]> parameters, String name, boolean remove) Deprecated.Please use SasSignatureValuesHelper method to get a query parameter- Parameters:
parameters- AMapof parameters to values to search.name- The name of parameter to find.remove- Whether or not to remove the parameter from the map.- Returns:
- A String representing the query parameter
-
getQueryParameter
@Deprecated protected <T> T getQueryParameter(Map<String, String[]> parameters, String name, boolean remove, Function<String, T> converter) Deprecated.Please use SasSignatureValuesHelper method to get a query parameter- Type Parameters:
T- The object type.- Parameters:
parameters- AMapof parameters to values to search.name- The name of parameter to find.remove- Whether or not to remove the parameter from the map.converter- Function that transforms the value to a String.- Returns:
- The object
-
getVersion
Deprecated.Please use SasSignatureValues- Returns:
- The storage version
-
getProtocol
Deprecated.Please use SasSignatureValues- Returns:
- The allowed HTTP protocol(s) or
null. Please refer toSasProtocolfor more details.
-
getStartTime
Deprecated.Please use SasSignatureValues- Returns:
- The start time for this SAS token or
null.
-
getExpiryTime
Deprecated.Please use SasSignatureValues- Returns:
- The expiry time for this SAS token.
-
getSasIpRange
Deprecated.Please use SasSignatureValues- Returns:
SasIpRange
-
getPermissions
Deprecated.Please use SasSignatureValues- Returns:
- Please refer to *SASPermission classes for more details.
-
getSignature
Deprecated.Please use SasSignatureValues- Returns:
- The signature for the SAS token.
-
tryAppendQueryParameter
Deprecated.Please use SasSignatureValuesShared helper method to append a SAS query parameter.- Parameters:
sb- TheStringBuilderto append to.param- TheStringparameter to append.value- The value of the parameter to append.
-
formatQueryParameterDate
Deprecated.Please use SasSignatureValuesFormats date time SAS query parameters.- Parameters:
dateTime- The SAS date time.- Returns:
- A String representing the SAS date time.
-
encode
Deprecated.Please use the generateSas method on the desired client after initializing the appropriate SasSignatureValues object.Encodes all SAS query parameters into a string that can be appended to a URL.- Returns:
- A
Stringrepresenting the SAS query parameters.
-