Sig4va Help
            
            #6401
          
          
        Replies: 2 comments
-
| 
         Any feedback/comment on this @debora-ito?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
        
 If you use the SDK to send the requests you don't need to manually handle the signing, the SDK will sign the requests automatically using SigV4a. Can you give a little more context on what you're trying to do?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I've been bashing my head trying to replace my current Sig4 implementation with Sig4va. The documentation for my use is outdated as classes are deprecated and I can't figure out how to use other examples.
My first attempt was trying to copy from the following example: https://github.com/aws-samples/sigv4a-signing-examples/blob/main/java/src/main/java/com/sigv4aSigning/SigV4ASign.java
However, this is 3 years old and it is telling me to use AwsV4aHttpSigner instead.
So now as I'm trying to use AwsV4aHttpSigner with the example in the comments (
aws-sdk-java-v2/core/http-auth-aws/src/main/java/software/amazon/awssdk/http/auth/aws/signer/AwsV4aHttpSigner.java
Line 89 in e9ac904
I finally got something to compile and build, but when I test, I get the following error:
java.lang.NoClassDefFoundError: software/amazon/awssdk/identity/spi/Identity
This is an interface being used by AwsSessionCredentialsIdentity, which is used in the example as well. So it isn't complaining that it can't find the AwsSessionCredentialsIdentity class, instead it is complaining about not being able to find the Identity interface which is in the exact same location as AwsSessionCredentialsIdentity (https://github.com/aws/aws-sdk-java-v2/blob/e9ac90437f3e3c2cd3920e441106e057695423df/core/identity-spi/src/main/java/software/amazon/awssdk/identity/spi/Identity.java).
Can someone please tell me where I'm going wrong? I've tried using 2.33.0 and 2.33.3 BOM version for the AWS SDK and both give me the same error.
If anyone has any other suggestions for implementing Sig4va please let me know. Originally I have Sig4 implemented manually and would like to use the AWS SDK to handle the signing requests to make it simpler. But I've been having a very difficult time figuring it out with the documentation and examples being inaccurate or outdated.
Other misc details:
Beta Was this translation helpful? Give feedback.
All reactions