Class Dialback.Verify

  • Enclosing class:
    Dialback

    public static final class Dialback.Verify
    extends Dialback
    A verification request sent from the receiving server to the authoritative server or a verification result sent in the opposite direction.
    • Constructor Detail

      • Verify

        public Verify​(Jid from,
                      Jid to,
                      String id,
                      String key)
        Creates a verification request from the receiving server to the authoritative server.
        Parameters:
        from - The target domain.
        to - The sender domain.
        id - The stream ID of the response stream header sent from the Receiving Server to the Initiating Server.
        key - The dialback key.
      • Verify

        public Verify​(Jid from,
                      Jid to,
                      String id,
                      boolean valid)
        Creates a verification result from the authoritative server to the receiving server.
        Parameters:
        from - The sender domain.
        to - The target domain.
        id - The stream ID.
        valid - If the key could be verified.
      • Verify

        public Verify​(Jid from,
                      Jid to,
                      String id,
                      StanzaError error)
        Creates a dialback error from the authoritative server to the receiving server.
        Parameters:
        from - The sender domain.
        to - The target domain.
        id - The stream id.
        error - The error.
    • Method Detail

      • getId

        public final String getId()
        Gets the stream id.
        Returns:
        The stream id.