2013-11-27 19:08:58 +00:00
|
|
|
package org.thoughtcrime.securesms.push;
|
|
|
|
|
2016-12-20 17:55:52 +00:00
|
|
|
|
2013-11-27 19:08:58 +00:00
|
|
|
import android.content.Context;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.R;
|
2016-03-23 17:34:41 +00:00
|
|
|
import org.whispersystems.signalservice.api.push.TrustStore;
|
2013-11-27 19:08:58 +00:00
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
2016-12-30 04:54:05 +00:00
|
|
|
public class GoogleFrontingTrustStore implements TrustStore {
|
2013-11-27 19:08:58 +00:00
|
|
|
|
|
|
|
private final Context context;
|
|
|
|
|
2016-12-30 04:54:05 +00:00
|
|
|
public GoogleFrontingTrustStore(Context context) {
|
2013-11-27 19:08:58 +00:00
|
|
|
this.context = context.getApplicationContext();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public InputStream getKeyStoreInputStream() {
|
2016-12-20 17:55:52 +00:00
|
|
|
return context.getResources().openRawResource(R.raw.censorship_fronting);
|
2013-11-27 19:08:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getKeyStorePassword() {
|
|
|
|
return "whisper";
|
|
|
|
}
|
2016-12-20 17:55:52 +00:00
|
|
|
|
2013-11-27 19:08:58 +00:00
|
|
|
}
|