Sample codes to generate SAS token in Java are stored in this repository.
This is based on the following document, which uses .NET sample codes.
Create a service SAS for a container or blob
https://docs.microsoft.com/azure/storage/blobs/sas-service-create