2013-11-27 19:08:58 +00:00
|
|
|
package org.thoughtcrime.securesms.push;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.R;
|
2014-11-12 19:35:54 +00:00
|
|
|
import org.whispersystems.textsecure.internal.push.PushServiceSocket;
|
2013-11-27 19:08:58 +00:00
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
|
|
public class TextSecurePushTrustStore implements PushServiceSocket.TrustStore {
|
|
|
|
|
|
|
|
private final Context context;
|
|
|
|
|
|
|
|
public TextSecurePushTrustStore(Context context) {
|
|
|
|
this.context = context.getApplicationContext();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public InputStream getKeyStoreInputStream() {
|
|
|
|
return context.getResources().openRawResource(R.raw.whisper);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getKeyStorePassword() {
|
|
|
|
return "whisper";
|
|
|
|
}
|
|
|
|
}
|