package org.asamk.signal.manager;
-import org.whispersystems.signalservice.api.push.SignalServiceAddress;
+import org.asamk.signal.manager.storage.recipients.RecipientAddress;
public class UntrustedIdentityException extends Exception {
- private final SignalServiceAddress sender;
- private final Integer senderDevice;
+ private final RecipientAddress sender;
+ private final int senderDevice;
- public UntrustedIdentityException(final SignalServiceAddress sender) {
- this(sender, null);
- }
-
- public UntrustedIdentityException(final SignalServiceAddress sender, final Integer senderDevice) {
+ public UntrustedIdentityException(final RecipientAddress sender, final int senderDevice) {
super("Untrusted identity: " + sender.getIdentifier());
this.sender = sender;
this.senderDevice = senderDevice;
}
- public SignalServiceAddress getSender() {
+ public RecipientAddress getSender() {
return sender;
}
- public Integer getSenderDevice() {
+ public int getSenderDevice() {
return senderDevice;
}
}