RsaSignatureCookieTransform Construtores

Definição

Inicializa uma nova instância da classe RsaSignatureCookieTransform.Initializes a new instance of the RsaSignatureCookieTransform class.

Sobrecargas

RsaSignatureCookieTransform(RSA)

Inicializa uma nova instância da classe RsaSignatureCookieTransform usando a chave RSA especificada.Initializes a new instance of the RsaSignatureCookieTransform class by using the specified RSA key.

RsaSignatureCookieTransform(X509Certificate2)

Inicializa uma nova instância da classe RsaSignatureCookieTransform usando a chave privada do certificado especificado.Initializes a new instance of the RsaSignatureCookieTransform class by using the private key of the specified certificate.

RsaSignatureCookieTransform(RSA)

Inicializa uma nova instância da classe RsaSignatureCookieTransform usando a chave RSA especificada.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)

Parâmetros

key
RSA

A chave RSA para usar como a assinatura padrão e a chave de verificação.The RSA key to use as the default signing and verification key.

Exceções

key é null.key is null.

Comentários

A propriedade SigningKey é inicializada com key.The SigningKey property is initialized to key. A VerificationKeys propriedade é inicializada para uma coleção que contém key como seu único elemento.The VerificationKeys property is initialized to a collection that contains key as its only element.

Aplica-se a

RsaSignatureCookieTransform(X509Certificate2)

Inicializa uma nova instância da classe RsaSignatureCookieTransform usando a chave privada do certificado especificado.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)

Parâmetros

certificate
X509Certificate2

O certificado cuja chave privada é usada para assinatura e verificação.The certificate whose private key is to be used for signing and verifying.

Exceções

certificate é null.certificate is null.

certificate não tem nenhuma chave privadacertificate has no private key - ou --or- A chave privada do certificate não é uma chave RSA.The private key of the certificate is not an RSA key.

Comentários

A SigningKey propriedade é inicializada para a chave privada do certificado.The SigningKey property is initialized to private key of the certificate. A VerificationKeys propriedade é inicializada para uma coleção que contém a chave privada do certificado como seu único elemento.The VerificationKeys property is initialized to a collection that contains the private key of the certificate as its only element.

Aplica-se a