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

Method rdataFromString

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

Source from the content-addressed store, hash-verified

62}
63
64void
65rdataFromString(Tokenizer st, Name origin) throws IOException {
66 String typeString = st.getString();
67 covered = Type.value(typeString);
68 if (covered < 0)
69 throw st.exception("Invalid type: " + typeString);
70 String algString = st.getString();
71 alg = DNSSEC.Algorithm.value(algString);
72 if (alg < 0)
73 throw st.exception("Invalid algorithm: " + algString);
74 labels = st.getUInt8();
75 origttl = st.getTTL();
76 expire = FormattedTime.parse(st.getString());
77 timeSigned = FormattedTime.parse(st.getString());
78 footprint = st.getUInt16();
79 signer = st.getName(origin);
80 signature = st.getBase64();
81}
82
83/** Converts the RRSIG/SIG Record to a String */
84String

Callers

nothing calls this directly

Calls 9

valueMethod · 0.95
parseMethod · 0.95
exceptionMethod · 0.80
getUInt8Method · 0.80
getUInt16Method · 0.80
getBase64Method · 0.80
getNameMethod · 0.65
getStringMethod · 0.45
getTTLMethod · 0.45

Tested by

no test coverage detected