mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-08 03:14:28 +00:00

1) Break out appropriate components. 2) Switch the incoming pipeline from SendReceiveService to the JobManager.
29 lines
694 B
Java
29 lines
694 B
Java
package org.whispersystems.textsecure.crypto;
|
|
|
|
import org.whispersystems.libaxolotl.IdentityKey;
|
|
|
|
public class UntrustedIdentityException extends Exception {
|
|
|
|
private final IdentityKey identityKey;
|
|
private final String e164number;
|
|
|
|
public UntrustedIdentityException(String s, String e164number, IdentityKey identityKey) {
|
|
super(s);
|
|
this.e164number = e164number;
|
|
this.identityKey = identityKey;
|
|
}
|
|
|
|
public UntrustedIdentityException(UntrustedIdentityException e) {
|
|
this(e.getMessage(), e.getE164Number(), e.getIdentityKey());
|
|
}
|
|
|
|
public IdentityKey getIdentityKey() {
|
|
return identityKey;
|
|
}
|
|
|
|
public String getE164Number() {
|
|
return e164number;
|
|
}
|
|
|
|
}
|