NServiceBus.ConfigureRijndaelEncryptionService.ConvertConfigToRijndaelService C# (CSharp) Method

ConvertConfigToRijndaelService() static private method

static private ConvertConfigToRijndaelService ( RijndaelEncryptionServiceConfig section ) : IEncryptionService
section RijndaelEncryptionServiceConfig
return IEncryptionService
        internal static IEncryptionService ConvertConfigToRijndaelService(RijndaelEncryptionServiceConfig section)
        {
            ValidateConfigSection(section);
            var keys = ExtractKeysFromConfigSection(section);
            var decryptionKeys = ExtractDecryptionKeysFromConfigSection(section);
            return BuildRijndaelEncryptionService(
                section.KeyIdentifier,
                keys,
                decryptionKeys
                );
        }