mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 14:56:53 +00:00
Change type of Cdn3StorageManagerConfiguration.clientSecret to SecretString
This commit is contained in:
1 parent
ba0c6be3e3
commit
a62a6c1cb6
4 files changed
+14
-5
No files matched your search
+1
-1
@@ -65,7 +65,7 @@ public class Cdn3RemoteStorageManager implements RemoteStorageManager {
|
||||
// strip trailing "/" for easier URI construction
|
||||
this.storageManagerBaseUrl = StringUtils.removeEnd(configuration.baseUri(), "/");
|
||||
this.clientId = configuration.clientId();
|
||||
this.clientSecret = configuration.clientSecret();
|
||||
this.clientSecret = configuration.clientSecret().value();
|
||||
|
||||
// Client used to read/write to cdn
|
||||
this.cdnHttpClient = FaultTolerantHttpClient.newBuilder()
|
||||
|
||||
+6
-3
@@ -1,6 +1,9 @@
|
||||
package org.whispersystems.textsecuregcm.configuration;
|
||||
|
||||
import org.whispersystems.textsecuregcm.configuration.secrets.SecretString;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public record Cdn3StorageManagerConfiguration(
|
||||
String baseUri,
|
||||
String clientId,
|
||||
String clientSecret) {}
|
||||
@NotNull String baseUri,
|
||||
@NotNull String clientId,
|
||||
@NotNull SecretString clientSecret) {}
|
||||
Reference in new issue
Block a user