CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
rsa_certificate_extensions.h
1
2#pragma once
3
4#include <security/cryptography/rsa.h>
5#include <security/cryptography/x509_certificates/x509_certificate_2.h>
6
7namespace System { namespace Security { namespace Cryptography { namespace X509Certificates {
8
11{
12public:
16 static ASPOSECPP_SHARED_API SharedPtr<RSA> GetRSAPublicKey(const SharedPtr<X509Certificate2>& certificate);
20 static ASPOSECPP_SHARED_API SharedPtr<RSA> GetRSAPrivateKey(const SharedPtr<X509Certificate2>& certificate);
21};
22
23}}}} // namespace System::Security::Cryptography::X509Certificates
Provides methods to retrieve RSA keys from X509Certificate2 objects.
Definition: rsa_certificate_extensions.h:11
static SharedPtr< RSA > GetRSAPrivateKey(const SharedPtr< X509Certificate2 > &certificate)
Gets RSA private key from the certificate.
static SharedPtr< RSA > GetRSAPublicKey(const SharedPtr< X509Certificate2 > &certificate)
Gets RSA public key from the certificate.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9