本文整理了Java中org.xbill.DNS.Header.decCount()
方法的一些代码示例,展示了Header.decCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.decCount()
方法的具体详情如下:
包路径:org.xbill.DNS.Header
类名称:Header
方法名:decCount
暂无
代码示例来源:origin: dnsjava/dnsjava
/**
* Removes a record from a section of the Message, and adjusts the header.
* @see Record
* @see Section
*/
public boolean
removeRecord(Record r, int section) {
if (sections[section] != null && sections[section].remove(r)) {
header.decCount(section);
return true;
}
else
return false;
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
/**
* Removes a record from a section of the Message, and adjusts the header.
* @see Record
* @see Section
*/
public boolean
removeRecord(Record r, int section) {
if (sections[section] != null && sections[section].remove(r)) {
header.decCount(section);
return true;
}
else
return false;
}
代码示例来源:origin: org.littleshoot/dnsjava
/**
* Removes a record from a section of the Message, and adjusts the header.
* @see Record
* @see Section
*/
public boolean
removeRecord(Record r, int section) {
if (sections[section] != null && sections[section].remove(r)) {
header.decCount(section);
return true;
}
else
return false;
}
代码示例来源:origin: tiandawu/IotXmpp
/**
* Removes a record from a section of the Message, and adjusts the header.
* @see Record
* @see Section
*/
public boolean
removeRecord(Record r, int section) {
if (sections[section] != null && sections[section].remove(r)) {
header.decCount(section);
return true;
}
else
return false;
}
代码示例来源:origin: dnsjava/dnsjava
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
if (tsig != null)
代码示例来源:origin: dnsjava/dnsjava
hmac.update(old.getSignature());
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
m.getHeader().incCount(Section.ADDITIONAL);
代码示例来源:origin: org.littleshoot/dnsjava
static void
verifyMessage(Message message, byte [] bytes, SIGRecord sig, SIGRecord previous,
KEYRecord key) throws DNSSECException
{
if (!matches(sig, key))
throw new KeyMismatchException(key, sig);
Date now = new Date();
if (now.compareTo(sig.getExpire()) > 0)
throw new SignatureExpiredException(sig.getExpire(), now);
if (now.compareTo(sig.getTimeSigned()) < 0)
throw new SignatureNotYetValidException(sig.getTimeSigned(),
now);
DNSOutput out = new DNSOutput();
digestSIG(out, sig);
if (previous != null)
out.writeByteArray(previous.getSignature());
Header header = (Header) message.getHeader().clone();
header.decCount(Section.ADDITIONAL);
out.writeByteArray(header.toWire());
out.writeByteArray(bytes, Header.LENGTH,
message.sig0start - Header.LENGTH);
verify(key.getPublicKey(), sig.getAlgorithm(),
out.toByteArray(), sig.getSignature());
}
代码示例来源:origin: tiandawu/IotXmpp
header.decCount(Section.ADDITIONAL);
out.writeByteArray(header.toWire());
代码示例来源:origin: dnsjava/dnsjava
header.decCount(Section.ADDITIONAL);
out.writeByteArray(header.toWire());
代码示例来源:origin: org.littleshoot/dnsjava
hmac.update(old.getSignature());
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
m.getHeader().incCount(Section.ADDITIONAL);
代码示例来源:origin: tiandawu/IotXmpp
hmac.update(old.getSignature());
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
m.getHeader().incCount(Section.ADDITIONAL);
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
hmac.update(old.getSignature());
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
m.getHeader().incCount(Section.ADDITIONAL);
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
if (tsig != null)
代码示例来源:origin: org.littleshoot/dnsjava
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
if (tsig != null)
代码示例来源:origin: tiandawu/IotXmpp
m.getHeader().decCount(Section.ADDITIONAL);
byte [] header = m.getHeader().toWire();
if (tsig != null)
内容来源于网络,如有侵权,请联系作者删除!