SymmetricKey.Create Method

Definition

Overloads

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, String, String)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, SecureString, String)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

Create(SymmetricKeyEncryption, String, String, CreateDispositionType)
Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString, String)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, String)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, String, String)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, String)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm)

Creates the object on the server. The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method.

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method.

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, SecureString)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, String, String)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] keyEncryptions, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, string passPhrase, string identityPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * string * string -> unit
Public Sub Create (keyEncryptions As SymmetricKeyEncryption(), keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As String, identityPhrase As String)

Parameters

keyEncryptions
SymmetricKeyEncryption[]
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
String
identityPhrase
String

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, SecureString, String)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] keyEncryptions, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, System.Security.SecureString passPhrase, string identityPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * System.Security.SecureString * string -> unit
Public Sub Create (keyEncryptions As SymmetricKeyEncryption(), keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As SecureString, identityPhrase As String)

Parameters

keyEncryptions
SymmetricKeyEncryption[]
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
SecureString
identityPhrase
String

Create(SymmetricKeyEncryption, String, String, CreateDispositionType)

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption keyEncryption, string providerAlgorithm, string providerKeyName, Microsoft.SqlServer.Management.Smo.CreateDispositionType createDispositionType);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption * string * string * Microsoft.SqlServer.Management.Smo.CreateDispositionType -> unit
Public Sub Create (keyEncryption As SymmetricKeyEncryption, providerAlgorithm As String, providerKeyName As String, createDispositionType As CreateDispositionType)

Parameters

keyEncryption
SymmetricKeyEncryption
providerAlgorithm
String
providerKeyName
String
createDispositionType
CreateDispositionType

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString, String)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption keyEncryption, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, System.Security.SecureString passPhrase, string identityPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * System.Security.SecureString * string -> unit
Public Sub Create (keyEncryption As SymmetricKeyEncryption, keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As SecureString, identityPhrase As String)

Parameters

keyEncryption
SymmetricKeyEncryption
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
SecureString
identityPhrase
String

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, String)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] keyEncryptions, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, string passPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * string -> unit
Public Sub Create (keyEncryptions As SymmetricKeyEncryption(), keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As String)

Parameters

keyEncryptions
SymmetricKeyEncryption[]
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
String

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, String, String)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived. The identityPhrase parameter is used to tag data (using a GUID based on the identity phrase) that is encrypted with the key.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption keyEncryption, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, string passPhrase, string identityPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * string * string -> unit
Public Sub Create (keyEncryption As SymmetricKeyEncryption, keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As String, identityPhrase As String)

Parameters

keyEncryption
SymmetricKeyEncryption
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
String
identityPhrase
String

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, String)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption keyEncryption, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, string passPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * string -> unit
Public Sub Create (keyEncryption As SymmetricKeyEncryption, keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As String)

Parameters

keyEncryption
SymmetricKeyEncryption
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
String

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption keyEncryption, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, System.Security.SecureString passPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * System.Security.SecureString -> unit
Public Sub Create (keyEncryption As SymmetricKeyEncryption, keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As SecureString)

Parameters

keyEncryption
SymmetricKeyEncryption
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
SecureString

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm)

Creates the object on the server. The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] keyEncryptions, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm -> unit
Public Sub Create (keyEncryptions As SymmetricKeyEncryption(), keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm)

Parameters

keyEncryptions
SymmetricKeyEncryption[]
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm

Create(SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm)

Creates the object on the server. The keyEncryption parameter specifies the encryption type. The keyEncryptionAlgorithm parameter specifies the encryption method.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption keyEncryption, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm -> unit
Public Sub Create (keyEncryption As SymmetricKeyEncryption, keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm)

Parameters

keyEncryption
SymmetricKeyEncryption
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm

Create(SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, SecureString)

Creates the object on the server. . The keyEncryption parameter specifies an array of encryption types. The keyEncryptionAlgorithm parameter specifies the encryption method. The passPhrase parameter specifies a pass phrase from which the symmetric key can be derived.

public void Create (Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] keyEncryptions, Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, System.Security.SecureString passPhrase);
member this.Create : Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption[] * Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm * System.Security.SecureString -> unit
Public Sub Create (keyEncryptions As SymmetricKeyEncryption(), keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, passPhrase As SecureString)

Parameters

keyEncryptions
SymmetricKeyEncryption[]
keyEncryptionAlgorithm
SymmetricKeyEncryptionAlgorithm
passPhrase
SecureString

Applies to