Azure-java-sdk:8:3:0
I can not understand complete the uses of uploadPermissions() method (below is the signature of method). (com.microsoft.azure.storage.blob.CloudBlobContainer#uploadPermissions()) This method uploads two thing
- BlobContainerPublicAccessType (OFF | BLOB| CONTAINER)
- HashMap ==> sharedAccessBlobPolicyMap
I can understand the first thing that will be used to change the public access level of the container but unable to understand the 2nd thing (sharedAccessBlobPolicyMap ) that when the sharedAccessBlobPolicyMap will be used?
As per my understanding in Azure, blob policy is used while generating Shared Access Signature. Is there any other use of blob policy?
/**
* Uploads the container's permissions using the specified request options and operation context.
*
* @param permissions
* A {@link BlobContainerPermissions} object that represents the permissions to upload.
* @param accessCondition
* An {@link AccessCondition} object that represents the access conditions for the container.
* @param options
* A {@link BlobRequestOptions} object that specifies any additional options for the request. Specifying
* <code>null</code> will use the default request options from the associated service client (
* {@link CloudBlobClient}).
* @param opContext
* An {@link OperationContext} object that represents the context for the current operation. This object
* is used to track requests to the storage service, and to provide additional runtime information about
* the operation.
*
* @throws StorageException
* If a storage service error occurred.
*/
@DoesServiceRequest
public void uploadPermissions(final BlobContainerPermissions permissions, final AccessCondition accessCondition,
BlobRequestOptions options, OperationContext opContext) throws StorageException