Xamarin Public Jenkins f3e3aab35a Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
2016-02-22 11:00:01 -05:00

27 lines
1.6 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="SqlException.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">balnee</owner>
// <owner current="true" primary="false">krishnib</owner>
//------------------------------------------------------------------------------
namespace System.Data.SqlClient
{
/// <summary>
/// Abstract base class for all TCE encryption algorithm factory classes. Factory classes create instances of an encryption algorithm
/// with a given key. At runtime when we determine a particular column is marked for TCE, based on the encryption algorithm we invoke
/// the corresponding factory class and retrieve an object to an encryption algorithm.
/// </summary>
internal abstract class SqlClientEncryptionAlgorithmFactory
{
/// <summary>
/// Creates an encrytion algorithm with a given key.
/// </summary>
/// <param name="rootKey">encryption key that should be passed to the encryption algorithm to be created</param>
/// <param name="encryptionType">Encryption Type, some algorithms will need this</param>
/// <param name="encryptionAlgorithm">Encryption algorithm name. Needed for extracting version bits</param>
/// <returns>Return a newly created SqlClientEncryptionAlgorithm instance</returns>
internal abstract SqlClientEncryptionAlgorithm Create(SqlClientSymmetricKey encryptionKey, SqlClientEncryptionType encryptionType, string encryptionAlgorithm);
}
}