Export (0) Print
Expand All

EncryptingCredentials Constructor (SecurityKey, SecurityKeyIdentifier, String)

.NET Framework 4.6 and 4.5

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

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public EncryptingCredentials(
	SecurityKey key,
	SecurityKeyIdentifier keyIdentifier,
	string algorithm
)

Parameters

key
Type: System.IdentityModel.Tokens.SecurityKey

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

keyIdentifier
Type: System.IdentityModel.Tokens.SecurityKeyIdentifier

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

algorithm
Type: System.String

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

ExceptionCondition
ArgumentNullException

key is null.

-or-

keyIdentifier is null.

-or-

algorithm is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft