NServiceBus.RijndaelEncryptionService.VerifyExpiredKeys C# (CSharp) Method

VerifyExpiredKeys() static private method

static private VerifyExpiredKeys ( IList keys ) : void
keys IList
return void
        static void VerifyExpiredKeys(IList<byte[]> keys)
        {
            for (var index = 0; index < keys.Count; index++)
            {
                var key = keys[index];
                if (IsValidKey(key))
                {
                    continue;
                }
                var message = $"The expired key at index {index} has an invalid length of {key.Length} bytes.";
                throw new Exception(message);
            }
        }