RsaSecurityKey.GetAsymmetricAlgorithm(String, Boolean) Método
Definição
Obtém o algoritmo de criptografia assimétrico especificado.Gets the specified asymmetric cryptographic algorithm.
public:
override System::Security::Cryptography::AsymmetricAlgorithm ^ GetAsymmetricAlgorithm(System::String ^ algorithm, bool requiresPrivateKey);
public:
override System::Security::Cryptography::AsymmetricAlgorithm ^ GetAsymmetricAlgorithm(System::String ^ algorithm, bool privateKey);
public override System.Security.Cryptography.AsymmetricAlgorithm GetAsymmetricAlgorithm (string algorithm, bool requiresPrivateKey);
public override System.Security.Cryptography.AsymmetricAlgorithm GetAsymmetricAlgorithm (string algorithm, bool privateKey);
override this.GetAsymmetricAlgorithm : string * bool -> System.Security.Cryptography.AsymmetricAlgorithm
override this.GetAsymmetricAlgorithm : string * bool -> System.Security.Cryptography.AsymmetricAlgorithm
Public Overrides Function GetAsymmetricAlgorithm (algorithm As String, requiresPrivateKey As Boolean) As AsymmetricAlgorithm
Public Overrides Function GetAsymmetricAlgorithm (algorithm As String, privateKey As Boolean) As AsymmetricAlgorithm
Parâmetros
- algorithm
- String
O algoritmo assimétrico a criar.The asymmetric algorithm to create.
- requiresPrivateKeyprivateKey
- Boolean
true quando uma chave privada é necessária para criar o algoritmo; caso contrário, false.true when a private key is required to create the algorithm; otherwise, false.
Retornos
Um AsymmetricAlgorithm que representa o algoritmo de criptografia assimétrico especificado.An AsymmetricAlgorithm that represents the specified asymmetric cryptographic algorithm.
Exceções
requiresPrivateKey é true e uma chave privada não está disponível.requiresPrivateKey is true and a private key is not available.