protected Checksum getBodyChecksum( RequestBody requestBody, ChecksumType checksumType ) throws IOException,
KerberosException
{
KdcRequestEncoder bodyEncoder = new KdcRequestEncoder();
byte[] bodyBytes = bodyEncoder.encodeRequestBody( requestBody );
ChecksumHandler checksumHandler = new ChecksumHandler();
return checksumHandler.calculateChecksum( checksumType, bodyBytes, null, KeyUsage.NUMBER8 );
}