private void PopulateCrytoConfiguration()
        {
            var hmacAlgorithmName = ApplicationConfigurationManager.GetConfigurationString(ConfigKeyHmacAlgorithmName,
                                                                                           BaseCryptoConfiguration.DefaultHmacAlgorithmName);

            var hashAlgorithmName = ApplicationConfigurationManager.GetConfigurationString(ConfigKeyHashAlgorithmName,
                                                                                           BaseCryptoConfiguration.DefaultHashAlgorithmName);

            var signatureHahAlgorithmName = ApplicationConfigurationManager.GetConfigurationString(ConfigKeySignatureHashAlgorithmName,
                                                                                                   BaseCryptoConfiguration.DefaultSignatureHashAlgorithmName);

            var signatureAlgorithmName = ApplicationConfigurationManager.GetConfigurationString(ConfigKeySignatureAlgorithmName,
                                                                                                BaseCryptoConfiguration.DefaultSignatureAlgorithmName);

            var symmetricAlgorithmName = ApplicationConfigurationManager.GetConfigurationString(ConfigSymmetricAlgorithmName,
                                                                                                BaseCryptoConfiguration.DefaultSymmetricAlgorithmName);

            _cryptoConfiguration = new AppCryptoConfiguration()
            {
                HmacAlgorithmName          = hmacAlgorithmName,
                HashAlgorithmName          = hashAlgorithmName,
                SignatureHashAlgorithmName = signatureHahAlgorithmName,
                SignatureAlgorithmName     = signatureAlgorithmName,
                SymmetricAlgorithmName     = symmetricAlgorithmName
            };
        }
        private IList <Guid> GetSupportedTypeVersions()
        {
            Collection <Guid> supportedTypeVersions = new Collection <Guid>();

            string typeVersionsConfig = ApplicationConfigurationManager.GetConfigurationString(ConfigKeySupportedType, String.Empty);

            string[] typeVersions =
                typeVersionsConfig.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (string typeVersionClassName in typeVersions)
            {
                if (ItemTypeManager.TypeHandlersByClassName.ContainsKey(typeVersionClassName))
                {
                    supportedTypeVersions.Add(ItemTypeManager.TypeHandlersByClassName[typeVersionClassName].TypeId);
                }
                else
                {
                    throw new InvalidConfigurationException(Resources.InvalidSupportedTypeVersions);
                }
            }

            return(supportedTypeVersions);
        }