@Deprecated public abstract class BaseSasQueryParameters extends Object
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.| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
expiryTime
Deprecated.
|
protected String |
permissions
Deprecated.
|
protected SasProtocol |
protocol
Deprecated.
|
protected SasIpRange |
sasIpRange
Deprecated.
|
protected String |
signature
Deprecated.
|
protected OffsetDateTime |
startTime
Deprecated.
|
protected String |
version
Deprecated.
|
| Constructor and Description |
|---|
BaseSasQueryParameters(Map<String,String[]> queryParamsMap,
boolean removeSASParametersFromMap)
Deprecated.
Please use SasSignatureValues
|
BaseSasQueryParameters(String version,
SasProtocol protocol,
OffsetDateTime startTime,
OffsetDateTime expiryTime,
SasIpRange sasIpRange,
String permissions,
String signature)
Deprecated.
Please use SasSignatureValues
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
encode()
Deprecated.
Please use the generateSas method on the desired client after initializing the appropriate
SasSignatureValues object.
|
protected String |
formatQueryParameterDate(OffsetDateTime dateTime)
Deprecated.
Please use SasSignatureValues
|
OffsetDateTime |
getExpiryTime()
Deprecated.
Please use SasSignatureValues
|
String |
getPermissions()
Deprecated.
Please use SasSignatureValues
|
SasProtocol |
getProtocol()
Deprecated.
Please use SasSignatureValues
|
protected String |
getQueryParameter(Map<String,String[]> parameters,
String name,
boolean remove)
Deprecated.
Please use SasSignatureValues
|
protected <T> T |
getQueryParameter(Map<String,String[]> parameters,
String name,
boolean remove,
Function<String,T> converter)
Deprecated.
Please use SasSignatureValues
|
SasIpRange |
getSasIpRange()
Deprecated.
Please use SasSignatureValues
|
String |
getSignature()
Deprecated.
Please use SasSignatureValues
|
OffsetDateTime |
getStartTime()
Deprecated.
Please use SasSignatureValues
|
String |
getVersion()
Deprecated.
Please use SasSignatureValues
|
protected void |
tryAppendQueryParameter(StringBuilder sb,
String param,
Object value)
Deprecated.
Please use SasSignatureValues
|
protected String version
protected SasProtocol protocol
protected OffsetDateTime startTime
protected OffsetDateTime expiryTime
protected SasIpRange sasIpRange
protected String permissions
protected String signature
@Deprecated public BaseSasQueryParameters(Map<String,String[]> queryParamsMap, boolean removeSASParametersFromMap)
BaseSasQueryParameters object.queryParamsMap - All query parameters for the request as key-value pairsremoveSASParametersFromMap - When true, the SAS query parameters will be removed from
queryParamsMap@Deprecated public BaseSasQueryParameters(String version, SasProtocol protocol, OffsetDateTime startTime, OffsetDateTime expiryTime, SasIpRange sasIpRange, String permissions, String signature)
BaseSasQueryParameters object. These objects are only created internally by
SASSignatureValues classes.version - A String representing the storage version.protocol - A String representing the allowed HTTP protocol(s) or null.startTime - A java.util.Date representing the start time for this SAS token or null.expiryTime - A java.util.Date representing the expiry time for this SAS token.sasIpRange - A SasIpRange representing the range of valid IP addresses for this SAS token or
null.permissions - A String representing the storage permissions or null.signature - A String representing the signature for the SAS token.@Deprecated protected String getQueryParameter(Map<String,String[]> parameters, String name, boolean remove)
parameters - A Map of parameters to values to search.name - The name of parameter to find.remove - Whether or not to remove the parameter from the map.@Deprecated protected <T> T getQueryParameter(Map<String,String[]> parameters, String name, boolean remove, Function<String,T> converter)
T - The object type.parameters - A Map of 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.@Deprecated public String getVersion()
@Deprecated public SasProtocol getProtocol()
null. Please refer to SasProtocol for more details.@Deprecated public OffsetDateTime getStartTime()
null.@Deprecated public OffsetDateTime getExpiryTime()
@Deprecated public SasIpRange getSasIpRange()
SasIpRange@Deprecated public String getPermissions()
@Deprecated public String getSignature()
@Deprecated protected void tryAppendQueryParameter(StringBuilder sb, String param, Object value)
sb - The StringBuilder to append to.param - The String parameter to append.value - The value of the parameter to append.@Deprecated protected String formatQueryParameterDate(OffsetDateTime dateTime)
dateTime - The SAS date time.@Deprecated public abstract String encode()
String representing all SAS query parameters.Copyright © 2020 Microsoft Corporation. All rights reserved.