File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
services/s3/src/main/java/software/amazon/awssdk/services/s3/presigner Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 61
61
* requiring access to Alice's credentials.
62
62
* <p/>
63
63
*
64
- * <b >Signature Duration</b >
64
+ * <h2 >Signature Duration</h2 >
65
65
* <p/>
66
66
*
67
67
* Pre-signed requests are only valid for a finite period of time, referred to as the signature duration. This signature
70
70
* duration has passed will result in an access denied response from the service.
71
71
* <p/>
72
72
*
73
- * <b >Example Usage</b >
73
+ * <h3 >Example Usage</h3 >
74
74
* <p/>
75
75
*
76
76
* <pre>
109
109
* </pre>
110
110
* <p/>
111
111
*
112
- * <b >Browser Compatibility</b >
112
+ * <h2 >Browser Compatibility</h2 >
113
113
* <p/>
114
114
*
115
115
* Some pre-signed requests can be executed by a web browser. These "browser compatible" pre-signed requests
123
123
* being browser-compatible.
124
124
* <p />
125
125
*
126
- * <b>Executing a Pre-Signed Request from Java code</b>
126
+ * <h3>Configurations that affect browser compatibility</h3>
127
+ * <h4>Enabling Checking Validation</h4>
128
+ * If checksum validations are enabled, the presigned URL will no longer be browser compatible because it adds a signed header
129
+ * that must be included in the HTTP request.
130
+ *
131
+ * Checksum validation is disabled in the presigner by default, but when using a custom {@link S3Configuration} when enabling
132
+ * features like path style access or accelerate mode, it must be explicitly disabled:
133
+ *
134
+ * <pre>
135
+ * S3Presigner presigner = S3Presigner.builder()
136
+ * .serviceConfiguration(S3Configuration.builder()
137
+ * .checksumValidationEnabled(false)
138
+ * .build())
139
+ * .build();
140
+ * </pre>
141
+ *
142
+ *
143
+ * <h2>Executing a Pre-Signed Request from Java code</h2>
127
144
* <p />
128
145
*
129
146
* Browser-compatible requests (see above) can be executed using a web browser. All pre-signed requests can be executed
You can’t perform that action at this time.
0 commit comments