Class AWSV4Auth

java.lang.Object
com.eka.middleware.pub.util.auth.AWSV4Auth

public class AWSV4Auth extends Object
Example: Signing AWS Requests with Signature Version 4 in Java.
  • Constructor Details

    • AWSV4Auth

      public AWSV4Auth()
  • Method Details

    • addAwsHeaders

      public static void addAwsHeaders(Map<String,String> headers, String httpMethodName, Map<String,String> queryParametes, String canonicalURI, String accessKeyID, String secretAccessKey, String regionName, String serviceName, String payload, byte[] payloadBytes)
      Task 4: Add the Signing Information to the Request. We'll return Map of all headers put this headers in your request.
    • bytesToHex_1

      public static String bytesToHex_1(byte[] bytes)