Class OmemoManagerSetupHelper


  • public class OmemoManagerSetupHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertAllDevicesAreDecided​(org.jivesoftware.smackx.omemo.OmemoManager manager, java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)  
      static void assertAllDevicesAreTrusted​(org.jivesoftware.smackx.omemo.OmemoManager manager, java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)  
      static void assertAllDevicesAreUndecided​(org.jivesoftware.smackx.omemo.OmemoManager manager, java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)  
      static void assertAllDevicesAreUntrusted​(org.jivesoftware.smackx.omemo.OmemoManager manager, java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)  
      static void cleanUpPubSub​(org.jivesoftware.smackx.omemo.OmemoManager omemoManager)  
      static void cleanUpRoster​(org.jivesoftware.smackx.omemo.OmemoManager omemoManager)  
      static org.jivesoftware.smackx.omemo.OmemoManager prepareOmemoManager​(org.jivesoftware.smack.XMPPConnection connection)  
      static void trustAllIdentities​(org.jivesoftware.smackx.omemo.OmemoManager alice, org.jivesoftware.smackx.omemo.OmemoManager bob)  
      static void trustAllIdentitiesWithTests​(org.jivesoftware.smackx.omemo.OmemoManager alice, org.jivesoftware.smackx.omemo.OmemoManager bob)  
      • Methods inherited from class java.lang.Object

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

      • OmemoManagerSetupHelper

        public OmemoManagerSetupHelper()
    • Method Detail

      • trustAllIdentities

        public static void trustAllIdentities​(org.jivesoftware.smackx.omemo.OmemoManager alice,
                                              org.jivesoftware.smackx.omemo.OmemoManager bob)
                                       throws java.lang.InterruptedException,
                                              org.jivesoftware.smack.SmackException.NotConnectedException,
                                              org.jivesoftware.smack.SmackException.NotLoggedInException,
                                              org.jivesoftware.smack.SmackException.NoResponseException,
                                              org.jivesoftware.smackx.omemo.exceptions.CannotEstablishOmemoSessionException,
                                              org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException,
                                              org.jivesoftware.smack.XMPPException.XMPPErrorException,
                                              org.jivesoftware.smackx.pubsub.PubSubException.NotALeafNodeException,
                                              java.io.IOException
        Throws:
        java.lang.InterruptedException
        org.jivesoftware.smack.SmackException.NotConnectedException
        org.jivesoftware.smack.SmackException.NotLoggedInException
        org.jivesoftware.smack.SmackException.NoResponseException
        org.jivesoftware.smackx.omemo.exceptions.CannotEstablishOmemoSessionException
        org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException
        org.jivesoftware.smack.XMPPException.XMPPErrorException
        org.jivesoftware.smackx.pubsub.PubSubException.NotALeafNodeException
        java.io.IOException
      • trustAllIdentitiesWithTests

        public static void trustAllIdentitiesWithTests​(org.jivesoftware.smackx.omemo.OmemoManager alice,
                                                       org.jivesoftware.smackx.omemo.OmemoManager bob)
                                                throws java.lang.InterruptedException,
                                                       org.jivesoftware.smack.SmackException.NotConnectedException,
                                                       org.jivesoftware.smack.SmackException.NotLoggedInException,
                                                       org.jivesoftware.smack.SmackException.NoResponseException,
                                                       org.jivesoftware.smackx.omemo.exceptions.CannotEstablishOmemoSessionException,
                                                       org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException,
                                                       org.jivesoftware.smack.XMPPException.XMPPErrorException,
                                                       org.jivesoftware.smackx.pubsub.PubSubException.NotALeafNodeException,
                                                       java.io.IOException
        Throws:
        java.lang.InterruptedException
        org.jivesoftware.smack.SmackException.NotConnectedException
        org.jivesoftware.smack.SmackException.NotLoggedInException
        org.jivesoftware.smack.SmackException.NoResponseException
        org.jivesoftware.smackx.omemo.exceptions.CannotEstablishOmemoSessionException
        org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException
        org.jivesoftware.smack.XMPPException.XMPPErrorException
        org.jivesoftware.smackx.pubsub.PubSubException.NotALeafNodeException
        java.io.IOException
      • prepareOmemoManager

        public static org.jivesoftware.smackx.omemo.OmemoManager prepareOmemoManager​(org.jivesoftware.smack.XMPPConnection connection)
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertAllDevicesAreUndecided

        public static void assertAllDevicesAreUndecided​(org.jivesoftware.smackx.omemo.OmemoManager manager,
                                                        java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)
      • assertAllDevicesAreUntrusted

        public static void assertAllDevicesAreUntrusted​(org.jivesoftware.smackx.omemo.OmemoManager manager,
                                                        java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)
      • assertAllDevicesAreDecided

        public static void assertAllDevicesAreDecided​(org.jivesoftware.smackx.omemo.OmemoManager manager,
                                                      java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)
      • assertAllDevicesAreTrusted

        public static void assertAllDevicesAreTrusted​(org.jivesoftware.smackx.omemo.OmemoManager manager,
                                                      java.util.HashMap<org.jivesoftware.smackx.omemo.internal.OmemoDevice,​org.jivesoftware.smackx.omemo.trust.OmemoFingerprint> devices)
      • cleanUpPubSub

        public static void cleanUpPubSub​(org.jivesoftware.smackx.omemo.OmemoManager omemoManager)
                                  throws java.io.IOException,
                                         org.jivesoftware.smack.SmackException.NotConnectedException,
                                         java.lang.InterruptedException
        Throws:
        java.io.IOException
        org.jivesoftware.smack.SmackException.NotConnectedException
        java.lang.InterruptedException
      • cleanUpRoster

        public static void cleanUpRoster​(org.jivesoftware.smackx.omemo.OmemoManager omemoManager)