本文整理了Java中org.xbill.DNS.Header.toWire()
方法的一些代码示例,展示了Header.toWire()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.toWire()
方法的具体详情如下:
包路径:org.xbill.DNS.Header
类名称:Header
方法名:toWire
暂无
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
void
toWire(DNSOutput out) {
header.toWire(out);
Compression c = new Compression();
for (int i = 0; i < 4; i++) {
if (sections[i] == null)
continue;
for (int j = 0; j < sections[i].size(); j++) {
Record rec = (Record)sections[i].get(j);
rec.toWire(out, i, c);
}
}
}
代码示例来源:origin: org.littleshoot/dnsjava
void
toWire(DNSOutput out) {
header.toWire(out);
Compression c = new Compression();
for (int i = 0; i < 4; i++) {
if (sections[i] == null)
continue;
for (int j = 0; j < sections[i].size(); j++) {
Record rec = (Record)sections[i].get(j);
rec.toWire(out, i, c);
}
}
}
代码示例来源:origin: dnsjava/dnsjava
void
toWire(DNSOutput out) {
header.toWire(out);
Compression c = new Compression();
for (int i = 0; i < 4; i++) {
if (sections[i] == null)
continue;
for (int j = 0; j < sections[i].size(); j++) {
Record rec = (Record)sections[i].get(j);
rec.toWire(out, i, c);
}
}
}
代码示例来源:origin: tiandawu/IotXmpp
void
toWire(DNSOutput out) {
header.toWire(out);
Compression c = new Compression();
for (int i = 0; i < 4; i++) {
if (sections[i] == null)
continue;
for (int j = 0; j < sections[i].size(); j++) {
Record rec = (Record)sections[i].get(j);
rec.toWire(out, i, c);
}
}
}
代码示例来源:origin: dnsjava/dnsjava
public byte []
toWire() {
DNSOutput out = new DNSOutput();
toWire(out);
return out.toByteArray();
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
public byte []
toWire() {
DNSOutput out = new DNSOutput();
toWire(out);
return out.toByteArray();
}
代码示例来源:origin: org.littleshoot/dnsjava
public byte []
toWire() {
DNSOutput out = new DNSOutput();
toWire(out);
return out.toByteArray();
}
代码示例来源:origin: tiandawu/IotXmpp
public byte []
toWire() {
DNSOutput out = new DNSOutput();
toWire(out);
return out.toByteArray();
}
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
header.toWire(out);
Compression c = new Compression();
for (int i = 0; i < 4; i++) {
newheader.toWire(out);
out.restore();
newheader.toWire(out);
out.restore();
代码示例来源:origin: org.littleshoot/dnsjava
header.toWire(out);
Compression c = new Compression();
for (int i = 0; i < 4; i++) {
newheader.toWire(out);
out.restore();
break;
newheader.toWire(out);
out.restore();
代码示例来源:origin: tiandawu/IotXmpp
header.toWire(out);
Compression c = new Compression();
for (int i = 0; i < 4; i++) {
newheader.toWire(out);
out.restore();
break;
newheader.toWire(out);
out.restore();
代码示例来源:origin: dnsjava/dnsjava
byte [] header = m.getHeader().toWire();
if (tsig != null)
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: dnsjava/dnsjava
byte [] header = m.getHeader().toWire();
m.getHeader().incCount(Section.ADDITIONAL);
hmac.update(header);
代码示例来源:origin: tiandawu/IotXmpp
out.writeByteArray(header.toWire());
代码示例来源:origin: dnsjava/dnsjava
out.writeByteArray(header.toWire());
代码示例来源:origin: tiandawu/IotXmpp
byte [] header = m.getHeader().toWire();
m.getHeader().incCount(Section.ADDITIONAL);
hmac.update(header);
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
byte [] header = m.getHeader().toWire();
m.getHeader().incCount(Section.ADDITIONAL);
hmac.update(header);
代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi
byte [] header = m.getHeader().toWire();
if (tsig != null)
m.getHeader().incCount(Section.ADDITIONAL);
代码示例来源:origin: dnsjava/dnsjava
header.toWire(out);
Compression c = new Compression();
int flags = header.getFlagsByte();
内容来源于网络,如有侵权,请联系作者删除!