org.xbill.DNS
Class TSIGRecord

java.lang.Object
  |
  +--org.xbill.DNS.Record
        |
        +--org.xbill.DNS.TSIGRecord

public class TSIGRecord
extends Record

Transaction Signature - this record is automatically generated by the resolver. TSIG records provide transaction security between the sender and receiver of a message, using a shared key.

See Also:
Resolver, TSIG

Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type, wireLength
 
Constructor Summary
TSIGRecord(Name _name, short _dclass, int _ttl, Name _alg, Date _timeSigned, short _fudge, byte[] _signature, int _originalID, short _error, byte[] _other)
          Creates a TSIG Record from the given data.
 
Method Summary
 Name getAlgorithm()
          Returns the shared key's algorithm
 short getError()
          Returns the extended error
 short getFudge()
          Returns the time fudge factor
 int getOriginalID()
          Returns the original message ID
 byte[] getOther()
          Returns the other data
 byte[] getSignature()
          Returns the signature
 Date getTimeSigned()
          Returns the time that this record was generated
 String toString()
          Converts to a String
 
Methods inherited from class org.xbill.DNS.Record
equals, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, getWireLength, hashCode, newRecord, newRecord, newRecord, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TSIGRecord

public TSIGRecord(Name _name,
                  short _dclass,
                  int _ttl,
                  Name _alg,
                  Date _timeSigned,
                  short _fudge,
                  byte[] _signature,
                  int _originalID,
                  short _error,
                  byte[] _other)
           throws IOException
Creates a TSIG Record from the given data. This is normally called by the TSIG class
Parameters:
alg - The shared key's algorithm
timeSigned - The time that this record was generated
fudge - The fudge factor for time - if the time that the message is received is not in the range [now - fudge, now + fudge], the signature fails
signature - The signature
originalID - The message ID at the time of its generation
error - The extended error field. Should be 0 in queries.
other - The other data field. Currently used only in BADTIME responses.
See Also:
TSIG
Method Detail

toString

public String toString()
Converts to a String
Overrides:
toString in class Record

getAlgorithm

public Name getAlgorithm()
Returns the shared key's algorithm

getTimeSigned

public Date getTimeSigned()
Returns the time that this record was generated

getFudge

public short getFudge()
Returns the time fudge factor

getSignature

public byte[] getSignature()
Returns the signature

getOriginalID

public int getOriginalID()
Returns the original message ID

getError

public short getError()
Returns the extended error

getOther

public byte[] getOther()
Returns the other data