session-android/src/org/thoughtcrime/securesms/push/DomainFrontingTrustStore.java
2019-07-24 12:30:23 +10:00

30 lines
631 B
Java

package org.thoughtcrime.securesms.push;
import android.content.Context;
import network.loki.messenger.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";
}
}