You can use azure storage SDK for maven as follows:
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>8.3.0</version>
</dependency>
Then follow the below code to generate SAS token which you can append to your storage URL.
CloudStorageAccount account = CloudStorageAccount.parse(blobConnectionString);
// Create a blob service client
CloudBlobClient blobClient = account.createCloudBlobClient();
CloudBlobContainer container = blobClient.getContainerReference(containerName);
Date expirationTime = Date.from(LocalDateTime.now().plusDays(7).atZone(ZoneOffset.UTC).toInstant());
SharedAccessBlobPolicy sharedAccessPolicy=new SharedAccessBlobPolicy();
sharedAccessPolicy.setPermissions(EnumSet.of(SharedAccessBlobPermissions.READ,
SharedAccessBlobPermissions.WRITE,SharedAccessBlobPermissions.ADD));
sharedAccessPolicy.setSharedAccessStartTime(new Date());
sharedAccessPolicy.setSharedAccessExpiryTime(expirationTime);
String sasToken = container.generateSharedAccessSignature(sharedAccessPolicy, null);