session-android/src/org/thoughtcrime/securesms/push/GoogleFrontingTrustStore.java
2016-12-29 20:54:05 -08:00

29 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 GoogleFrontingTrustStore implements TrustStore {
private final Context context;
public GoogleFrontingTrustStore(Context context) {
this.context = context.getApplicationContext();
}
@Override
public InputStream getKeyStoreInputStream() {
return context.getResources().openRawResource(R.raw.censorship_fronting);
}
@Override
public String getKeyStorePassword() {
return "whisper";
}
}