public class UntrustedOmemoIdentityException
extends java.lang.Exception
| Constructor and Description |
|---|
UntrustedOmemoIdentityException(OmemoDevice device,
OmemoFingerprint untrustedKey)
Constructor for when encryption fails because the user untrusted a recipients device.
|
UntrustedOmemoIdentityException(OmemoDevice device,
OmemoFingerprint fpTrusted,
OmemoFingerprint fpUntrusted)
Constructor for when we receive a message with an identityKey different from the one we trusted.
|
| Modifier and Type | Method and Description |
|---|---|
OmemoDevice |
getDevice()
Return the device which sent the message.
|
java.lang.String |
getMessage() |
OmemoFingerprint |
getTrustedFingerprint()
Return the fingerprint of the key we expected.
|
OmemoFingerprint |
getUntrustedFingerprint()
Return the fingerprint of the unexpected untrusted key.
|
public UntrustedOmemoIdentityException(OmemoDevice device, OmemoFingerprint fpTrusted, OmemoFingerprint fpUntrusted)
device - device which sent the message.fpTrusted - fingerprint of the identityKey we previously had and trusted.fpUntrusted - fingerprint of the new key which is untrusted.public UntrustedOmemoIdentityException(OmemoDevice device, OmemoFingerprint untrustedKey)
device - device the user wants to encrypt for, but which has been marked as untrusted.untrustedKey - fingerprint of that device.public OmemoDevice getDevice()
public OmemoFingerprint getTrustedFingerprint()
public OmemoFingerprint getUntrustedFingerprint()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable