public class TSIGRecord extends Record
Modifier and Type | Field and Description |
---|---|
private Name |
alg |
private int |
error |
private java.time.Duration |
fudge |
private int |
originalID |
private byte[] |
other |
private byte[] |
signature |
private java.time.Instant |
timeSigned |
Constructor and Description |
---|
TSIGRecord() |
TSIGRecord(Name name,
int dclass,
long ttl,
Name alg,
java.util.Date timeSigned,
int fudge,
byte[] signature,
int originalID,
int error,
byte[] other)
|
TSIGRecord(Name name,
int dclass,
long ttl,
Name alg,
java.time.Instant timeSigned,
java.time.Duration 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
|
java.time.Duration |
getFudge()
Returns the time fudge factor
|
int |
getOriginalID()
Returns the original message ID
|
byte[] |
getOther()
Returns the other data
|
byte[] |
getSignature()
Returns the signature
|
java.time.Instant |
getTimeSigned()
Returns the time that this record was generated
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected java.lang.String |
rrToString()
Converts rdata to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
private Name alg
private java.time.Instant timeSigned
private java.time.Duration fudge
private byte[] signature
private int originalID
private int error
private byte[] other
TSIGRecord()
@Deprecated public TSIGRecord(Name name, int dclass, long ttl, Name alg, java.util.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.TSIG
public TSIGRecord(Name name, int dclass, long ttl, Name alg, java.time.Instant timeSigned, java.time.Duration 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.TSIG
protected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
protected java.lang.String rrToString()
rrToString
in class Record
public Name getAlgorithm()
public java.time.Instant getTimeSigned()
public java.time.Duration getFudge()
public byte[] getSignature()
public int getOriginalID()
public int getError()
public byte[] getOther()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record