Class AWSRestClientAuthStrategy

java.lang.Object
overit.geocall.aws.auth.client.AWSRestClientAuthStrategy
All Implemented Interfaces:
overit.geocall.spring.auth.client.AuthenticationInterceptor.Strategy

public class AWSRestClientAuthStrategy extends Object implements overit.geocall.spring.auth.client.AuthenticationInterceptor.Strategy
AWSRestClientAuthStrategy is a class that implements the Strategy interface of RestClientAuthenticator. It provides authentication functionality for AWS services by adding the necessary headers to the request following the AWS Signature Version 4 specifications.
See Also:
  • Field Details

  • Constructor Details

    • AWSRestClientAuthStrategy

      public AWSRestClientAuthStrategy(String serviceType, String accessKeyId, String secretAccessKey, String region)
      Constructor for AWSAuthStrategy for AWS credentials.
      Parameters:
      serviceType - aws service type you need to authenticate to.
      accessKeyId - String about the access key ID.
      secretAccessKey - String about the secret access key.
      region - specify this if the service you are calling is in different region than caller
    • AWSRestClientAuthStrategy

      public AWSRestClientAuthStrategy(String serviceType, String accessKeyId, String secretAccessKey, String secretToken, String region)
      Constructor for AWSAuthStrategy for AWS credentials.
      Parameters:
      serviceType - aws service type you need to authenticate to.
      accessKeyId - String about the access key ID.
      secretAccessKey - String about the secret access key.
      secretToken - String about the secret token.
      region - specify this if the service you are calling is in different region than caller
  • Method Details

    • authenticate

      public void authenticate(org.springframework.http.HttpRequest request, byte[] body)