Class SignalOmemoRatchet


  • public class SignalOmemoRatchet
    extends org.jivesoftware.smackx.omemo.OmemoRatchet<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher>
    • Field Summary

      • Fields inherited from class org.jivesoftware.smackx.omemo.OmemoRatchet

        omemoManager, store
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] doubleRatchetDecrypt​(org.jivesoftware.smackx.omemo.internal.OmemoDevice sender, byte[] encryptedKey)  
      org.jivesoftware.smackx.omemo.internal.CiphertextTuple doubleRatchetEncrypt​(org.jivesoftware.smackx.omemo.internal.OmemoDevice recipient, byte[] messageKey)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • doubleRatchetDecrypt

        public byte[] doubleRatchetDecrypt​(org.jivesoftware.smackx.omemo.internal.OmemoDevice sender,
                                           byte[] encryptedKey)
                                    throws org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException,
                                           org.jivesoftware.smackx.omemo.exceptions.NoRawSessionException,
                                           org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException,
                                           org.jivesoftware.smackx.omemo.exceptions.UntrustedOmemoIdentityException,
                                           java.io.IOException
        Specified by:
        doubleRatchetDecrypt in class org.jivesoftware.smackx.omemo.OmemoRatchet<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher>
        Throws:
        org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException
        org.jivesoftware.smackx.omemo.exceptions.NoRawSessionException
        org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException
        org.jivesoftware.smackx.omemo.exceptions.UntrustedOmemoIdentityException
        java.io.IOException
      • doubleRatchetEncrypt

        public org.jivesoftware.smackx.omemo.internal.CiphertextTuple doubleRatchetEncrypt​(org.jivesoftware.smackx.omemo.internal.OmemoDevice recipient,
                                                                                           byte[] messageKey)
        Specified by:
        doubleRatchetEncrypt in class org.jivesoftware.smackx.omemo.OmemoRatchet<org.whispersystems.libsignal.IdentityKeyPair,​org.whispersystems.libsignal.IdentityKey,​org.whispersystems.libsignal.state.PreKeyRecord,​org.whispersystems.libsignal.state.SignedPreKeyRecord,​org.whispersystems.libsignal.state.SessionRecord,​org.whispersystems.libsignal.SignalProtocolAddress,​org.whispersystems.libsignal.ecc.ECPublicKey,​org.whispersystems.libsignal.state.PreKeyBundle,​org.whispersystems.libsignal.SessionCipher>