AWS java SDK manually installed signature version

I am trying to access a blob storage service that sits on top of AWS S3. It supports the AWS SDK and its signature version 2.

I use the code here to access this service.

Can I manually install the signature version of a request made by the AWS SDK?

According to this page

AWS currently supports two signature versions: the signature of version 2 and the signature of version 4, which are described in this section. Most services support version 4, and if the service supports version 4, we strongly recommend that you use this version.

I cannot find how to manually configure the signature version to 2 or 4.

+2
source share
1

S3 - :

Java SDK

.

System.setProperty(SDKGlobalConfiguration.ENABLE_S3_SIGV4_SYSTEM_PROPERTY, "true");

, , .

-Dcom.amazonaws.services.s3.enableV4

, v2 AWS SDK , v4 SDK v1.11.0 ( 2016 ).

+2

Source: https://habr.com/ru/post/1680387/


All Articles