public class TSIGRecord extends Record
Resolver,
TSIG,
Serialized Form| Constructor and Description |
|---|
TSIGRecord(Name name,
int dclass,
long ttl,
Name alg,
Date timeSigned,
int fudge,
byte[] signature,
int originalID,
int error,
byte[] other)
Creates a TSIG Record from the given data.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
getAlgorithm()
Returns the shared key's algorithm
|
int |
getError()
Returns the extended error
|
int |
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
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withNamepublic TSIGRecord(Name name, int dclass, long ttl, Name alg, Date timeSigned, int fudge, byte[] signature, int originalID, int error, byte[] other)
alg - The shared key's algorithmtimeSigned - The time that this record was generatedfudge - The fudge factor for time - if the time that the message is
received is not in the range [now - fudge, now + fudge], the signature
failssignature - The signatureoriginalID - The message ID at the time of its generationerror - The extended error field. Should be 0 in queries.other - The other data field. Currently used only in BADTIME
responses.TSIGpublic Name getAlgorithm()
public Date getTimeSigned()
public int getFudge()
public byte[] getSignature()
public int getOriginalID()
public int getError()
public byte[] getOther()