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

Method rrToString

src/main/java/core/org/xbill/DNS/KEYBase.java:49–69  ·  view source on GitHub ↗

Converts the DNSKEY/KEY Record to a String

()

Source from the content-addressed store, hash-verified

47
48/** Converts the DNSKEY/KEY Record to a String */
49String
50rrToString() {
51 StringBuffer sb = new StringBuffer();
52 sb.append(flags);
53 sb.append(" ");
54 sb.append(proto);
55 sb.append(" ");
56 sb.append(alg);
57 if (key != null) {
58 if (Options.check("multiline")) {
59 sb.append(" (\n");
60 sb.append(base64.formatString(key, 64, "\t", true));
61 sb.append(" ; key_tag = ");
62 sb.append(getFootprint());
63 } else {
64 sb.append(" ");
65 sb.append(base64.toString(key));
66 }
67 }
68 return sb.toString();
69}
70
71/**
72 * Returns the flags describing the key's properties

Callers

nothing calls this directly

Calls 5

checkMethod · 0.95
getFootprintMethod · 0.95
formatStringMethod · 0.80
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected