CommonSasQueryParameters Class
- java.
lang. Object - com.
azure. storage. common. sas. CommonSasQueryParameters
- com.
public class CommonSasQueryParameters
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 URLParts type. NOTE: Instances of this class are immutable to ensure thread safety.
Constructor Summary
Constructor | Description |
---|---|
CommonSasQueryParameters(Map<String,String[]> queryParamsMap, boolean removeSasParametersFromMap) |
Creates a new CommonSasQueryParameters object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes all SAS query parameters into a string that can be appended to a URL. |
String |
getAgentObjectId()
Gets the AAD object ID of a user assumed to be unauthorized by the owner of the user delegation key to perform the action granted by the SAS token. |
String |
getCacheControl()
Gets the Cache-Control header value when a client accesses the resource with this sas token. |
String |
getContentDisposition()
Gets the Content-Disposition header value when a client accesses the resource with this sas token. |
String |
getContentEncoding()
Gets the Content-Encoding header value when a client accesses the resource with this sas token. |
String |
getContentLanguage()
Gets the Content-Language header value when a client accesses the resource with this sas token. |
String |
getContentType()
Gets the Content-Type header value when a client accesses the resource with this sas token. |
String |
getCorrelationId()
Gets the correlation id to correlate the storage audit logs with the audit logs used by the principal generating and distributing the SAS. |
Integer |
getDirectoryDepth()
Gets the directory depth of the resource this SAS token authorizes. |
String |
getEncryptionScope()
Gets the encryption scope that will be applied to any write operations performed with the sas. |
Offset |
getExpiryTime()
Gets the expiry time for this SAS token. |
String |
getIdentifier()
Gets the signed identifier. |
Offset |
getKeyExpiry()
Gets the datetime when the key expires. |
String |
getKeyObjectId()
Gets the object ID of the key. |
String |
getKeyService()
Gets the services that are permitted by the key. |
Offset |
getKeyStart()
Gets the datetime when the key becomes active. |
String |
getKeyTenantId()
Gets the tenant ID of the key. |
String |
getKeyVersion()
Gets the service version that created the key. |
String |
getPermissions()
Gets the SAS permissions in a raw format. |
String |
getPreauthorizedAgentObjectId()
Gets the AAD object ID of a user assumed to be authorized by the owner of the user delegation key to perform the action granted by the SAS token. |
Sas |
getProtocol()
Gets the allowed HTTP protocol(s). |
String |
getResource()
Gets the storage resource. |
String |
getResourceTypes()
Gets the storage resource types being accessed (only for Account SAS). |
Sas |
getSasIpRange()
Gets the SasIpRange. |
String |
getServices()
Gets the storage services being accessed (only for Account SAS). |
String |
getSignature()
Gets the signature for the SAS token. |
Offset |
getStartTime()
Gets the start time for this SAS token. |
String |
getVersion()
Gets the storage version. |
Methods inherited from java.lang.Object
Constructor Details
CommonSasQueryParameters
public CommonSasQueryParameters(Map
Creates a new CommonSasQueryParameters object.
Parameters:
true
, the SAS query parameters will be removed from
queryParamsMap
Method Details
encode
public String encode()
Encodes all SAS query parameters into a string that can be appended to a URL.
Returns:
String
representing the SAS query parameters.getAgentObjectId
public String getAgentObjectId()
Gets the AAD object ID of a user assumed to be unauthorized by the owner of the user delegation key to perform the action granted by the SAS token. The service will validate the SAS token and ensure that the owner of the user delegation key has the required permissions before granting access and the service will perform an additional POSIX ACL check to determine if this user is authorized to perform the requested operation.
Returns:
getCacheControl
public String getCacheControl()
Gets the Cache-Control header value when a client accesses the resource with this sas token.
Returns:
getContentDisposition
public String getContentDisposition()
Gets the Content-Disposition header value when a client accesses the resource with this sas token.
Returns:
getContentEncoding
public String getContentEncoding()
Gets the Content-Encoding header value when a client accesses the resource with this sas token.
Returns:
getContentLanguage
public String getContentLanguage()
Gets the Content-Language header value when a client accesses the resource with this sas token.
Returns:
getContentType
public String getContentType()
Gets the Content-Type header value when a client accesses the resource with this sas token.
Returns:
getCorrelationId
public String getCorrelationId()
Gets the correlation id to correlate the storage audit logs with the audit logs used by the principal generating and distributing the SAS.
Returns:
getDirectoryDepth
public Integer getDirectoryDepth()
Gets the directory depth of the resource this SAS token authorizes.
Returns:
getEncryptionScope
public String getEncryptionScope()
Gets the encryption scope that will be applied to any write operations performed with the sas.
Returns:
getExpiryTime
public OffsetDateTime getExpiryTime()
Gets the expiry time for this SAS token.
Returns:
getIdentifier
public String getIdentifier()
Gets the signed identifier.
Please see here for more information.
Returns:
getKeyExpiry
public OffsetDateTime getKeyExpiry()
Gets the datetime when the key expires.
Returns:
getKeyObjectId
public String getKeyObjectId()
Gets the object ID of the key.
Returns:
getKeyService
public String getKeyService()
Gets the services that are permitted by the key.
Returns:
getKeyStart
public OffsetDateTime getKeyStart()
Gets the datetime when the key becomes active.
Returns:
getKeyTenantId
public String getKeyTenantId()
Gets the tenant ID of the key.
Returns:
getKeyVersion
public String getKeyVersion()
Gets the service version that created the key.
Returns:
getPermissions
public String getPermissions()
Gets the SAS permissions in a raw format.
Please refer to *SASPermission classes for more details.
Returns:
getPreauthorizedAgentObjectId
public String getPreauthorizedAgentObjectId()
Gets the AAD object ID of a user assumed to be authorized by the owner of the user delegation key to perform the action granted by the SAS token. The service will validate the SAS token and ensure that the owner of the user delegation key has the required permissions before granting access but no additional permission check for the agent object id will be performed.
Returns:
getProtocol
public SasProtocol getProtocol()
Gets the allowed HTTP protocol(s).
Please refer to SasProtocol for more details.
Returns:
null
.getResource
public String getResource()
Gets the storage resource.
Returns:
getResourceTypes
public String getResourceTypes()
Gets the storage resource types being accessed (only for Account SAS).
Please refer to AccountSasResourceType for more details.
Returns:
getSasIpRange
getServices
public String getServices()
Gets the storage services being accessed (only for Account SAS).
Please refer to AccountSasService for more details.
Returns:
getSignature
public String getSignature()
Gets the signature for the SAS token.
Returns:
getStartTime
public OffsetDateTime getStartTime()
Gets the start time for this SAS token.
Returns:
null
.getVersion
public String getVersion()
Gets the storage version.
Returns:
Applies to
Azure SDK for Java