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