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

Method rdataFromString

src/main/java/core/org/xbill/DNS/KEYRecord.java:331–350  ·  view source on GitHub ↗
(Tokenizer st, Name origin)

Source from the content-addressed store, hash-verified

329}
330
331void
332rdataFromString(Tokenizer st, Name origin) throws IOException {
333 String flagString = st.getIdentifier();
334 flags = Flags.value(flagString);
335 if (flags < 0)
336 throw st.exception("Invalid flags: " + flagString);
337 String protoString = st.getIdentifier();
338 proto = Protocol.value(protoString);
339 if (proto < 0)
340 throw st.exception("Invalid protocol: " + protoString);
341 String algString = st.getIdentifier();
342 alg = DNSSEC.Algorithm.value(algString);
343 if (alg < 0)
344 throw st.exception("Invalid algorithm: " + algString);
345 /* If this is a null KEY, there's no key data */
346 if ((flags & Flags.USE_MASK) == Flags.NOKEY)
347 key = null;
348 else
349 key = st.getBase64();
350}
351
352}

Callers

nothing calls this directly

Calls 5

valueMethod · 0.95
valueMethod · 0.95
getIdentifierMethod · 0.80
exceptionMethod · 0.80
getBase64Method · 0.80

Tested by

no test coverage detected