File tree Expand file tree Collapse file tree
src/main/java/org/janelia/saalfeldlab/n5/universe Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import org .janelia .saalfeldlab .n5 .zarr .N5ZarrReader ;
2121import org .janelia .saalfeldlab .n5 .zarr .N5ZarrWriter ;
2222import org .janelia .saalfeldlab .n5 .zarr .ZarrKeyValueReader ;
23+
24+ import software .amazon .awssdk .auth .credentials .DefaultCredentialsProvider ;
2325import software .amazon .awssdk .services .s3 .S3Client ;
2426import software .amazon .awssdk .services .s3 .S3ClientBuilder ;
2527
@@ -75,6 +77,18 @@ public N5Factory options( Consumer<N5FactoryOptions> configureOptions) {
7577 return this ;
7678 }
7779
80+ /**
81+ * @deprecated configure with {@link s3Configuration}.
82+ */
83+ @ Deprecated
84+ public N5Factory s3UseCredentials () {
85+
86+ s3Configuration (builder -> {
87+ builder .credentialsProvider (DefaultCredentialsProvider .create ());
88+ });
89+ return this ;
90+ }
91+
7892 /**
7993 * @deprecated configure with {@link N5Factory#getOptions()} and {@link N5FactoryOptions#hdf5(Consumer)}
8094 */
You can’t perform that action at this time.
0 commit comments