Edit

Share via


EncryptingCredentials Constructors

Definition

Initializes a new instance of the EncryptingCredentials class.

Overloads

EncryptingCredentials()

Initializes a new instance of the EncryptingCredentials class.

EncryptingCredentials(SecurityKey, SecurityKeyIdentifier, String)

Initializes a new instance of the EncryptingCredentials class with the specified cryptographic key, key identifier, and encryption algorithm.

EncryptingCredentials()

Initializes a new instance of the EncryptingCredentials class.

public:
 EncryptingCredentials();
public EncryptingCredentials ();
Public Sub New ()

Applies to

EncryptingCredentials(SecurityKey, SecurityKeyIdentifier, String)

Initializes a new instance of the EncryptingCredentials class with the specified cryptographic key, key identifier, and encryption algorithm.

public:
 EncryptingCredentials(System::IdentityModel::Tokens::SecurityKey ^ key, System::IdentityModel::Tokens::SecurityKeyIdentifier ^ keyIdentifier, System::String ^ algorithm);
public EncryptingCredentials (System.IdentityModel.Tokens.SecurityKey key, System.IdentityModel.Tokens.SecurityKeyIdentifier keyIdentifier, string algorithm);
new System.IdentityModel.Tokens.EncryptingCredentials : System.IdentityModel.Tokens.SecurityKey * System.IdentityModel.Tokens.SecurityKeyIdentifier * string -> System.IdentityModel.Tokens.EncryptingCredentials
Public Sub New (key As SecurityKey, keyIdentifier As SecurityKeyIdentifier, algorithm As String)

Parameters

key
SecurityKey

A SecurityKey that contains the cryptographic key that is used for encryption.

keyIdentifier
SecurityKeyIdentifier

A SecurityKeyIdentifier that specifies the identifier that represents the key that is used for encryption.

algorithm
String

A URI that represents the cryptographic algorithm that is used for encryption.

Exceptions

key is null.

-or-

keyIdentifier is null.

-or-

algorithm is null.

Applies to