TSIG.StreamVerifier (dnsjava documentation)
Date: 2013-04-10

org.xbill.DNS

## Class TSIG.StreamVerifier

- java.lang.Object
- - org.xbill.DNS.TSIG.StreamVerifier

- Enclosing class:
    TSIG

      public static class TSIG.StreamVerifier
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TSIG.StreamVerifier(TSIG tsig, TSIGRecord old)` Creates an object to verify a multiple message response

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `verify(Message m, byte[] b)` Verifies a TSIG record on an incoming message that is part of a multiple message response.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TSIG.StreamVerifier

          public TSIG.StreamVerifier(TSIG tsig,
                             TSIGRecord old)

      Creates an object to verify a multiple message response

  - ### Method Detail

    - #### verify

          public int verify(Message m,
                   byte[] b)

      Verifies a TSIG record on an incoming message that is part of a multiple message response. TSIG records must be present on the first and last messages, and at least every 100 records in between. After calling this routine, Message.isVerified() may be called on this message.
      Parameters:
        `m` - The message
        `b` - The message in unparsed form
      Returns:
        The result of the verification (as an Rcode)
      See Also:
        `Rcode`