Returns the maximum length of a TSIG record generated by this key. @see TSIGRecord
()
| 533 | * @see TSIGRecord |
| 534 | */ |
| 535 | public int |
| 536 | recordLength() { |
| 537 | return (name.length() + 10 + |
| 538 | alg.length() + |
| 539 | 8 + // time signed, fudge |
| 540 | 18 + // 2 byte MAC length, 16 byte MAC |
| 541 | 4 + // original id, error |
| 542 | 8); // 2 byte error length, 6 byte max error field. |
| 543 | } |
| 544 | |
| 545 | public static class StreamVerifier { |
| 546 | /** |