public class UntrustedOmemoIdentityException extends 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.
|
OmemoFingerprint |
getTrustedFingerprint()
Return the fingerprint of the key we expected.
|
OmemoFingerprint |
getUntrustedFingerprint()
Return the fingerprint of the unexpected untrusted key.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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()