RsaSignatureCookieTransform Constructors

Definition

Initializes a new instance of the RsaSignatureCookieTransform class.

Overloads

RsaSignatureCookieTransform(RSA)

Initializes a new instance of the RsaSignatureCookieTransform class by using the specified RSA key.

RsaSignatureCookieTransform(X509Certificate2)

Initializes a new instance of the RsaSignatureCookieTransform class by using the private key of the specified certificate.

RsaSignatureCookieTransform(RSA)

Initializes a new instance of the RsaSignatureCookieTransform class by using the specified RSA key.

public:
 RsaSignatureCookieTransform(System::Security::Cryptography::RSA ^ key);
public RsaSignatureCookieTransform (System.Security.Cryptography.RSA key);
new System.IdentityModel.RsaSignatureCookieTransform : System.Security.Cryptography.RSA -> System.IdentityModel.RsaSignatureCookieTransform
Public Sub New (key As RSA)

Parameters

key
RSA

The RSA key to use as the default signing and verification key.

Exceptions

key is null.

Remarks

The SigningKey property is initialized to key. The VerificationKeys property is initialized to a collection that contains key as its only element.

Applies to

RsaSignatureCookieTransform(X509Certificate2)

Initializes a new instance of the RsaSignatureCookieTransform class by using the private key of the specified certificate.

public:
 RsaSignatureCookieTransform(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public RsaSignatureCookieTransform (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.IdentityModel.RsaSignatureCookieTransform : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.RsaSignatureCookieTransform
Public Sub New (certificate As X509Certificate2)

Parameters

certificate
X509Certificate2

The certificate whose private key is to be used for signing and verifying.

Exceptions

certificate is null.

certificate has no private key

-or-

The private key of the certificate is not an RSA key.

Remarks

The SigningKey property is initialized to private key of the certificate. The VerificationKeys property is initialized to a collection that contains the private key of the certificate as its only element.

Applies to