Example #1
0
        /// <summary>
        /// Decrease the count of outstanding E-KEY interests for the C-KEY for
        /// timeCount. If the count decreases to 0, invoke onEncryptedKeys.
        /// </summary>
        ///
        /// <param name="keyRequest">The KeyRequest with the interestCount to update.</param>
        /// <param name="timeCount">The time count for indexing keyRequests_.</param>
        /// <param name="onEncryptedKeys_0">encrypted content key Data packets. If onEncryptedKeys is null, this does not use it.</param>
        private void updateKeyRequest(Producer.KeyRequest  keyRequest, double timeCount,
				Producer.OnEncryptedKeys  onEncryptedKeys_0)
        {
            --keyRequest.interestCount;
            if (keyRequest.interestCount == 0 && onEncryptedKeys_0 != null) {
                try {
                    onEncryptedKeys_0.onEncryptedKeys(keyRequest.encryptedKeys);
                } catch (Exception exception) {
                    logger_.log(ILOG.J2CsMapping.Util.Logging.Level.SEVERE, "Error in onEncryptedKeys", exception);
                }
                ILOG.J2CsMapping.Collections.Collections.Remove(keyRequests_,timeCount);
            }
        }