CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
cms_signer.h
1
2#ifndef cms_signer_h
3#define cms_signer_h
4
5#include "system/object.h"
6#include "security/cryptography/x509_certificates/x509_certificate_2.h"
7#include "security/cryptography/x509_certificates/x509_include_option.h"
8#include "security/cryptography/oid.h"
9
10namespace System{ namespace Security{ namespace Cryptography{ namespace Pkcs{
11
18class ASPOSECPP_SHARED_CLASS CmsSigner final: public System::Object
19{
20public:
23 ASPOSECPP_SHARED_API CmsSigner(const SharedPtr<X509Certificates::X509Certificate2>& certificate);
24
31
34 ASPOSECPP_SHARED_API SharedPtr<Oid> get_DigestAlgorithm() const;
37 ASPOSECPP_SHARED_API void set_DigestAlgorithm(const SharedPtr<Oid>& value);
38};
39
40}}}} // namespace System{ namespace Security{ namespace Cryptography{ namespace Pkcs{
41
42#endif // cms_signer_h
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Provides API to sign objects using CMS. Doesn't sign objects by itself, use SignedCMS class to do so....
Definition: cms_signer.h:19
SharedPtr< Oid > get_DigestAlgorithm() const
Gets hash algorithm using with signature.
void set_IncludeOption(X509Certificates::X509IncludeOption value)
Specifies which certificates from the chain will be included into the signature.
CmsSigner(const SharedPtr< X509Certificates::X509Certificate2 > &certificate)
Initializes signer with X509 certificate.
X509Certificates::X509IncludeOption get_IncludeOption() const
Checks which certificates from the chain will be included into the signature.
void set_DigestAlgorithm(const SharedPtr< Oid > &value)
Sets hash algorithm using with signature.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
X509IncludeOption
Specifies what certificates in chain to include.
Definition: x509_include_option.h:9
Definition: db_command.h:9