mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 18:45:19 +00:00
a573ab7c76
In preparation for Google shutting down domain fronting. Closes #7584
30 lines
635 B
Java
30 lines
635 B
Java
package org.thoughtcrime.securesms.push;
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import org.thoughtcrime.securesms.R;
|
|
import org.whispersystems.signalservice.api.push.TrustStore;
|
|
|
|
import java.io.InputStream;
|
|
|
|
public class DomainFrontingTrustStore implements TrustStore {
|
|
|
|
private final Context context;
|
|
|
|
public DomainFrontingTrustStore(Context context) {
|
|
this.context = context.getApplicationContext();
|
|
}
|
|
|
|
@Override
|
|
public InputStream getKeyStoreInputStream() {
|
|
return context.getResources().openRawResource(R.raw.censorship_fronting);
|
|
}
|
|
|
|
@Override
|
|
public String getKeyStorePassword() {
|
|
return "whisper";
|
|
}
|
|
|
|
}
|