How do I use AWS Signature Version 4 with Wasabi?

AWS Signature Version 4 allows you to authenticate your requests to AWS resources. Signature Version 4 can be used with Wasabi by pointing the "Host:" header to Wasabi servers. The Signature generation process is explained in detail here. Below are the instructions to get Signature version 4 working with Wasabi using Java language: