X509AsymmetricSecurityKey.GetSignatureDeformatter(String) Método
Definição
Obtém o algoritmo desformatador para a assinatura digital.Gets the de-formatter algorithm for the digital signature.
public:
override System::Security::Cryptography::AsymmetricSignatureDeformatter ^ GetSignatureDeformatter(System::String ^ algorithm);
public override System.Security.Cryptography.AsymmetricSignatureDeformatter GetSignatureDeformatter (string algorithm);
override this.GetSignatureDeformatter : string -> System.Security.Cryptography.AsymmetricSignatureDeformatter
Public Overrides Function GetSignatureDeformatter (algorithm As String) As AsymmetricSignatureDeformatter
Parâmetros
- algorithm
- String
O algoritmo desformatador para a assinatura digital da qual obter uma instância.The de-formatter algorithm for the digital signature to get an instance of.
Retornos
Um AsymmetricSignatureDeformatter que representa o algoritmo desformatador para a assinatura digital.An AsymmetricSignatureDeformatter that represents the de-formatter algorithm for the digital signature.
Exceções
algorithm é XmlDsigDSAUrl e a chave pública do certificado X.509 especificado no construtor não é do tipo DSA.algorithm is XmlDsigDSAUrl and the public key for the X.509 certificate specified in the constructor is not of type DSA.
- ou --or-
algorithm é XmlDsigRSASHA1Url ou RsaSha256Signature e a chave pública do certificado X.509 especificado no construtor não é do tipo RSA.algorithm is XmlDsigRSASHA1Url or RsaSha256Signature and the public key for the X.509 certificate specified in the constructor is not of type RSA.
- ou --or-
algorithm não é suportado.algorithm is not supported. Os algoritmos compatíveis são XmlDsigDSAUrl,The supported algorithms are XmlDsigDSAUrl,
XmlDsigRSASHA1Url e RsaSha256Signature.XmlDsigRSASHA1Url, and RsaSha256Signature.
Comentários
Use os XmlDsigDSAUrl XmlDsigRSASHA1Url campos, ou RsaSha256Signature para especificar o algorithm parâmetro.Use the XmlDsigDSAUrl, XmlDsigRSASHA1Url or RsaSha256Signature fields to specify the algorithm parameter.