private static void sealReply( AuthenticationContext authContext ) throws KerberosException, InvalidTicketException
{
AuthenticationReply reply = ( AuthenticationReply ) authContext.getReply();
EncryptionKey clientKey = authContext.getClientKey();
CipherTextHandler cipherTextHandler = authContext.getCipherTextHandler();
EncryptedData encryptedData = cipherTextHandler.seal( clientKey, reply, KeyUsage.NUMBER3 );
reply.setEncPart( encryptedData );
}