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

Method rrToString

src/main/java/core/org/xbill/DNS/SIGBase.java:84–113  ·  view source on GitHub ↗

Converts the RRSIG/SIG Record to a String

()

Source from the content-addressed store, hash-verified

82
83/** Converts the RRSIG/SIG Record to a String */
84String
85rrToString() {
86 StringBuffer sb = new StringBuffer();
87 sb.append (Type.string(covered));
88 sb.append (" ");
89 sb.append (alg);
90 sb.append (" ");
91 sb.append (labels);
92 sb.append (" ");
93 sb.append (origttl);
94 sb.append (" ");
95 if (Options.check("multiline"))
96 sb.append ("(\n\t");
97 sb.append (FormattedTime.format(expire));
98 sb.append (" ");
99 sb.append (FormattedTime.format(timeSigned));
100 sb.append (" ");
101 sb.append (footprint);
102 sb.append (" ");
103 sb.append (signer);
104 if (Options.check("multiline")) {
105 sb.append("\n");
106 sb.append(base64.formatString(signature, 64, "\t",
107 true));
108 } else {
109 sb.append (" ");
110 sb.append(base64.toString(signature));
111 }
112 return sb.toString();
113}
114
115/** Returns the RRset type covered by this signature */
116public int

Callers

nothing calls this directly

Calls 6

stringMethod · 0.95
checkMethod · 0.95
formatMethod · 0.95
formatStringMethod · 0.80
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected