To match the upstream name
LiveConfig.getUnidentifiedSenderTrustRoot(),
LiveConfig.createKeyBackupConfig(),
LiveConfig.getCdsMrenclave());
LiveConfig.getUnidentifiedSenderTrustRoot(),
LiveConfig.createKeyBackupConfig(),
LiveConfig.getCdsMrenclave());
- case SANDBOX -> new ServiceEnvironmentConfig(SandboxConfig.createDefaultServiceConfiguration(interceptors),
- SandboxConfig.getUnidentifiedSenderTrustRoot(),
- SandboxConfig.createKeyBackupConfig(),
- SandboxConfig.getCdsMrenclave());
+ case STAGING -> new ServiceEnvironmentConfig(StagingConfig.createDefaultServiceConfiguration(interceptors),
+ StagingConfig.getUnidentifiedSenderTrustRoot(),
+ StagingConfig.createKeyBackupConfig(),
+ StagingConfig.getCdsMrenclave());
public enum ServiceEnvironment {
LIVE,
public enum ServiceEnvironment {
LIVE,
import okhttp3.Dns;
import okhttp3.Interceptor;
import okhttp3.Dns;
import okhttp3.Interceptor;
private final static byte[] UNIDENTIFIED_SENDER_TRUST_ROOT = Base64.getDecoder()
.decode("BbqY1DzohE4NUZoVF+L18oUPrK3kILllLEJh2UnPSsEx");
private final static byte[] UNIDENTIFIED_SENDER_TRUST_ROOT = Base64.getDecoder()
.decode("BbqY1DzohE4NUZoVF+L18oUPrK3kILllLEJh2UnPSsEx");
- private SandboxConfig() {
+ private StagingConfig() {
It is optional for the `daemon` command.
For all other commands it is only optional if there is exactly one local user in the config directory.
It is optional for the `daemon` command.
For all other commands it is only optional if there is exactly one local user in the config directory.
+*--service-environment* ENVIRONMENT
+Choose the server environment to use:
+- `live` (default)
+- `staging`
+
*--dbus*::
Make request via user dbus.
*--dbus*::
Make request via user dbus.
- "$SIGNAL_CLI" --service-environment="sandbox" $@
+ "$SIGNAL_CLI" --service-environment="staging" $@
final var serviceEnvironmentCli = ns.<ServiceEnvironmentCli>get("service-environment");
final var serviceEnvironment = serviceEnvironmentCli == ServiceEnvironmentCli.LIVE
? ServiceEnvironment.LIVE
final var serviceEnvironmentCli = ns.<ServiceEnvironmentCli>get("service-environment");
final var serviceEnvironment = serviceEnvironmentCli == ServiceEnvironmentCli.LIVE
? ServiceEnvironment.LIVE
- : ServiceEnvironment.SANDBOX;
+ : ServiceEnvironment.STAGING;
final var trustNewIdentityCli = ns.<TrustNewIdentityCli>get("trust-new-identities");
final var trustNewIdentity = trustNewIdentityCli == TrustNewIdentityCli.ON_FIRST_USE
final var trustNewIdentityCli = ns.<TrustNewIdentityCli>get("trust-new-identities");
final var trustNewIdentity = trustNewIdentityCli == TrustNewIdentityCli.ON_FIRST_USE
+ STAGING {
+ @Override
+ public String toString() {
+ return "staging";
+ }
+ },
+ @Deprecated SANDBOX {
@Override
public String toString() {
return "sandbox";
@Override
public String toString() {
return "sandbox";