MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getTSIG

Method getTSIG

src/main/java/core/org/xbill/DNS/Message.java:278–288  ·  view source on GitHub ↗

Returns the TSIG record from the ADDITIONAL section, if one is present. @see TSIGRecord @see TSIG @see Section

()

Source from the content-addressed store, hash-verified

276 * @see Section
277 */
278public TSIGRecord
279getTSIG() {
280 int count = header.getCount(Section.ADDITIONAL);
281 if (count == 0)
282 return null;
283 List l = sections[Section.ADDITIONAL];
284 Record rec = (Record) l.get(count - 1);
285 if (rec.type != Type.TSIG)
286 return null;
287 return (TSIGRecord) rec;
288}
289
290/**
291 * Was this message signed by a TSIG?

Callers 7

sendQueryMethod · 0.95
doxfrMethod · 0.95
doAXFRMethod · 0.95
generateReplyMethod · 0.80
verifyTSIGMethod · 0.80
verifyMethod · 0.80
verifyMethod · 0.80

Calls 2

getCountMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected