org.xbill.DNS.Message.getTSIG()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(262)

本文整理了Java中org.xbill.DNS.Message.getTSIG()方法的一些代码示例,展示了Message.getTSIG()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getTSIG()方法的具体详情如下:
包路径:org.xbill.DNS.Message
类名称:Message
方法名:getTSIG

Message.getTSIG介绍

暂无

代码示例

代码示例来源:origin: posicks/mdnsjava

protected int verifyTSIG(final Message query, final Message response, final byte[] b, final TSIG tsig)
{
  if (tsig == null)
  {
    return 0;
  }
  
  int error = tsig.verify(response, b, query.getTSIG());
  
  if (mdnsVerbose)
  {
    logger.logp(Level.INFO, getClass().getName(), "verifyTSIG", "TSIG verify: " + Rcode.TSIGstring(error));
  }
  
  return error;
}

代码示例来源:origin: dnsjava/dnsjava

private void
verifyTSIG(Message query, Message response, byte [] b, TSIG tsig) {
  if (tsig == null)
    return;
  int error = tsig.verify(response, b, query.getTSIG());
  if (Options.check("verbose"))
    System.err.println("TSIG verify: " + Rcode.TSIGstring(error));
}

代码示例来源:origin: org.littleshoot/dnsjava

private void
verifyTSIG(Message query, Message response, byte [] b, TSIG tsig) {
  if (tsig == null)
    return;
  int error = tsig.verify(response, b, query.getTSIG());
  if (Options.check("verbose"))
    System.err.println("TSIG verify: " + Rcode.TSIGstring(error));
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

private void
verifyTSIG(Message query, Message response, byte [] b, TSIG tsig) {
  if (tsig == null)
    return;
  int error = tsig.verify(response, b, query.getTSIG());
  if (error == Rcode.NOERROR)
    response.tsigState = Message.TSIG_VERIFIED;
  else
    response.tsigState = Message.TSIG_FAILED;
  if (Options.check("verbose"))
    System.err.println("TSIG verify: " + Rcode.string(error));
}

代码示例来源:origin: tiandawu/IotXmpp

private void
verifyTSIG(Message query, Message response, byte [] b, TSIG tsig) {
  if (tsig == null)
    return;
  int error = tsig.verify(response, b, query.getTSIG());
  if (Options.check("verbose"))
    System.err.println("TSIG verify: " + Rcode.TSIGstring(error));
}

代码示例来源:origin: OpenNMS/opennms

if (tsig != null) {
  tsig.applyStream(response, qtsig, first);
  qtsig = response.getTSIG();

代码示例来源:origin: org.echocat.jomon.net/common

if (tsig != null) {
  tsig.applyStream(response, qtsig, first);
  qtsig = response.getTSIG();

代码示例来源:origin: dnsjava/dnsjava

if (tsig != null) {
  tsig.applyStream(response, qtsig, first);
  qtsig = response.getTSIG();

代码示例来源:origin: org.jboss.resteasy/resteasy-eagledns-fork

if (tsig != null) {
  tsig.applyStream(response, qtsig, first);
  qtsig = response.getTSIG();

代码示例来源:origin: org.apache.hadoop/hadoop-yarn-registry

if (tsig != null) {
 tsig.applyStream(response, qtsig, first);
 qtsig = response.getTSIG();

代码示例来源:origin: dnsjava/dnsjava

private void
sendQuery() throws IOException {
  Record question = Record.newRecord(zname, qtype, dclass);

  Message query = new Message();
  query.getHeader().setOpcode(Opcode.QUERY);
  query.addRecord(question, Section.QUESTION);
  if (qtype == Type.IXFR) {
    Record soa = new SOARecord(zname, dclass, 0, Name.root,
            Name.root, ixfr_serial,
            0, 0, 0, 0);
    query.addRecord(soa, Section.AUTHORITY);
  }
  if (tsig != null) {
    tsig.apply(query, null);
    verifier = new TSIG.StreamVerifier(tsig, query.getTSIG());
  }
  byte [] out = query.toWire(Message.MAXLENGTH);
  client.send(out);
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

private void
sendQuery() throws IOException {
  Record question = Record.newRecord(zname, qtype, dclass);

  Message query = new Message();
  query.getHeader().setOpcode(Opcode.QUERY);
  query.addRecord(question, Section.QUESTION);
  if (qtype == Type.IXFR) {
    Record soa = new SOARecord(zname, dclass, 0, Name.root,
            Name.root, ixfr_serial,
            0, 0, 0, 0);
    query.addRecord(soa, Section.AUTHORITY);
  }
  if (tsig != null) {
    tsig.apply(query, null);
    verifier = new TSIG.StreamVerifier(tsig, query.getTSIG());
  }
  byte [] out = query.toWire(Message.MAXLENGTH);
  client.send(out);
}

代码示例来源:origin: org.littleshoot/dnsjava

private void
sendQuery() throws IOException {
  Record question = Record.newRecord(zname, qtype, dclass);

  Message query = new Message();
  query.getHeader().setOpcode(Opcode.QUERY);
  query.addRecord(question, Section.QUESTION);
  if (qtype == Type.IXFR) {
    Record soa = new SOARecord(zname, dclass, 0, Name.root,
            Name.root, ixfr_serial,
            0, 0, 0, 0);
    query.addRecord(soa, Section.AUTHORITY);
  }
  if (tsig != null) {
    tsig.apply(query, null);
    verifier = new TSIG.StreamVerifier(tsig, query.getTSIG());
  }
  byte [] out = query.toWire(Message.MAXLENGTH);
  client.send(out);
}

代码示例来源:origin: tiandawu/IotXmpp

private void
sendQuery() throws IOException {
  Record question = Record.newRecord(zname, qtype, dclass);

  Message query = new Message();
  query.getHeader().setOpcode(Opcode.QUERY);
  query.addRecord(question, Section.QUESTION);
  if (qtype == Type.IXFR) {
    Record soa = new SOARecord(zname, dclass, 0, Name.root,
            Name.root, ixfr_serial,
            0, 0, 0, 0);
    query.addRecord(soa, Section.AUTHORITY);
  }
  if (tsig != null) {
    tsig.apply(query, null);
    verifier = new TSIG.StreamVerifier(tsig, query.getTSIG());
  }
  byte [] out = query.toWire(Message.MAXLENGTH);
  client.send(out);
}

代码示例来源:origin: OpenNMS/opennms

final TSIGRecord queryTSIG = query.getTSIG();
TSIG tsig = null;
if (queryTSIG != null) {

代码示例来源:origin: dnsjava/dnsjava

TSIGRecord queryTSIG = query.getTSIG();
TSIG tsig = null;
if (queryTSIG != null) {

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

verifier != null)
TSIGRecord tsigrec = response.getTSIG();

代码示例来源:origin: dnsjava/dnsjava

verifier != null)
TSIGRecord tsigrec = response.getTSIG();

代码示例来源:origin: org.littleshoot/dnsjava

verifier != null)
TSIGRecord tsigrec = response.getTSIG();

代码示例来源:origin: tiandawu/IotXmpp

verifier != null)
TSIGRecord tsigrec = response.getTSIG();

相关文章