2014-11-03 15:16:04 -08:00
|
|
|
package org.thoughtcrime.securesms.crypto;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
|
2015-09-23 15:47:48 -07:00
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
2014-11-03 15:16:04 -08:00
|
|
|
import org.thoughtcrime.securesms.service.KeyCachingService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class processes key exchange interactions.
|
|
|
|
*
|
|
|
|
* @author Moxie Marlinspike
|
|
|
|
*/
|
|
|
|
|
|
|
|
public class SecurityEvent {
|
|
|
|
|
|
|
|
public static final String SECURITY_UPDATE_EVENT = "org.thoughtcrime.securesms.KEY_EXCHANGE_UPDATE";
|
|
|
|
|
2015-03-11 14:23:45 -07:00
|
|
|
public static void broadcastSecurityUpdateEvent(Context context) {
|
2014-11-03 15:16:04 -08:00
|
|
|
Intent intent = new Intent(SECURITY_UPDATE_EVENT);
|
|
|
|
intent.setPackage(context.getPackageName());
|
|
|
|
context.sendBroadcast(intent, KeyCachingService.KEY_PERMISSION);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|