mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
28 lines
615 B
Java
28 lines
615 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 SignalServiceTrustStore implements TrustStore {
|
|
|
|
private final Context context;
|
|
|
|
public SignalServiceTrustStore(Context context) {
|
|
this.context = context.getApplicationContext();
|
|
}
|
|
|
|
@Override
|
|
public InputStream getKeyStoreInputStream() {
|
|
return context.getResources().openRawResource(R.raw.whisper);
|
|
}
|
|
|
|
@Override
|
|
public String getKeyStorePassword() {
|
|
return "whisper";
|
|
}
|
|
}
|