RsaSignatureCookieTransform Classe
Definição
public ref class RsaSignatureCookieTransform : System::IdentityModel::CookieTransform
public class RsaSignatureCookieTransform : System.IdentityModel.CookieTransform
type RsaSignatureCookieTransform = class
inherit CookieTransform
Public Class RsaSignatureCookieTransform
Inherits CookieTransform
- Herança
Comentários
RsaSignatureCookieTransform Adiciona um MAC RSA aos dados do cookie.RsaSignatureCookieTransform adds an RSA MAC to the cookie data. Isso fornece integridade, mas não confidencialidade.This provides integrity but not confidentiality. Por padrão, o MAC usa SHA-256, mas o SHA-1 pode ser solicitado.By default, the MAC uses SHA-256, but SHA-1 may be requested.
Os cookies protegidos com essa transformação podem ser lidos por qualquer computador que compartilhe a mesma chave privada RSA (geralmente associada a um certificado X509).Cookies protected with this transform may be read by any computer that shares the same RSA private key (generally associated with an X509 certificate).
Importante
Ao usar o RsaSignatureCookieTransform com um serviço, se uma chave fornecida por um certificado for alterada, o serviço deverá ser reiniciado.When using the RsaSignatureCookieTransform with a service, if a key provided by a certificate changes the service must be restarted.
Construtores
| 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. |
Propriedades
| HashName |
Obtém ou define o nome do algoritmo de hash a usar.Gets or sets the name of the hash algorithm to use. |
| SigningKey |
Obtém ou define a chave RSA que é usada para assinatura.Gets or sets the RSA key that is used for signing. |
| VerificationKeys |
Obtém a coleção de chaves usadas para verificação de assinatura.Gets the collection of keys used for signature verification. Por padrão, essa propriedade retorna uma lista que contém apenas a chave de assinatura.By default, this property returns a list that contains only the signing key. |
Métodos
| Decode(Byte[]) |
Verifica a assinatura especificada e retorna os dados originais, não assinados.Verifies the specified signature and returns the original, unsigned data. |
| Encode(Byte[]) |
Assina os dados especificados.Signs the specified data. |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |