Aspose::Pdf::Document::Encrypt metod

Document::Encrypt(Aspose::Pdf::Permissions, Aspose::Pdf::CryptoAlgorithm, const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>>>&) method

Krypterar dokumentet.

void Aspose::Pdf::Document::Encrypt(Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>>> &publicCertificates)
ParameterTypBeskrivning
permissionsAspose::Pdf::PermissionsDocument behörigheter, se Permissions för detaljer.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmKryptografisk algoritm, se CryptoAlgorithm för detaljer.
publicCertificatesconst System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>>>&De offentliga certifikaten som används för kryptering — ett per mottagare.

Anmärkningar

Denna metod förbereder för kryptering. För att kryptera ett dokument måste du anropa Save‑metoden för att spara det.

Se även

Document::Encrypt(const System::String&, const System::String&, Aspose::Pdf::Permissions, Aspose::Pdf::CryptoAlgorithm) method

Krypterar dokumentet.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm)
ParameterTypBeskrivning
userPasswordconst System::String&Användarlösenord.
ownerPasswordconst System::String&Ägarlösenord.
permissionsAspose::Pdf::PermissionsDocument behörigheter, se Permissions för detaljer.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmKryptografisk algoritm, se CryptoAlgorithm för detaljer.

Anmärkningar

Denna metod förbereder för kryptering. För att kryptera ett dokument måste du anropa Save‑metoden för att spara det.

Se även

Document::Encrypt(const System::String&, const System::String&, Aspose::Pdf::Permissions, Aspose::Pdf::CryptoAlgorithm, bool) method

Krypterar dokumentet.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
ParameterTypBeskrivning
userPasswordconst System::String&Användarlösenord.
ownerPasswordconst System::String&Ägarlösenord.
permissionsAspose::Pdf::PermissionsDocument behörigheter, se Permissions för detaljer.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmKryptografisk algoritm, se CryptoAlgorithm för detaljer.
usePdf20boolStöd för revision 6 (Extension 8).

Anmärkningar

Denna metod förbereder för kryptering. För att kryptera ett dokument måste du anropa Save‑metoden för att spara det.

Se även

Document::Encrypt(const System::String&, const System::String&, Aspose::Pdf::Permissions, const System::SharedPtr<Security::ICustomSecurityHandler>&) method

Krypterar dokumentet.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, Aspose::Pdf::Permissions permissions, const System::SharedPtr<Security::ICustomSecurityHandler> &customHandler)
ParameterTypBeskrivning
userPasswordconst System::String&Användarlösenord.
ownerPasswordconst System::String&Ägarlösenord.
permissionsAspose::Pdf::PermissionsDocument behörigheter, se Permissions för detaljer.
customHandlerconst System::SharedPtr<Security::ICustomSecurityHandler>&Den anpassade säkerhetshanteraren.

Anmärkningar

Denna metod förbereder för kryptering. För att kryptera ett dokument måste du anropa Save‑metoden för att spara det.

Se även

Document::Encrypt(const System::String&, const System::String&, const System::SharedPtr<Facades::DocumentPrivilege>&, Aspose::Pdf::CryptoAlgorithm, bool) method

Krypterar dokumentet.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, const System::SharedPtr<Facades::DocumentPrivilege> &privileges, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
ParameterTypBeskrivning
userPasswordconst System::String&Användarlösenord.
ownerPasswordconst System::String&Ägarlösenord.
privilegesconst System::SharedPtr<Facades::DocumentPrivilege>&Document behörigheter, se Permissions för detaljer.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmKryptografisk algoritm, se CryptoAlgorithm för detaljer.
usePdf20boolStöd för revision 6 (Extension 8).

Anmärkningar

Denna metod förbereder för kryptering. För att kryptera ett dokument måste du anropa Save‑metoden för att spara det.

Se även

Document::Encrypt(const System::String&, const System::String&, const System::SharedPtr<Facades::DocumentPrivilege>&, const System::SharedPtr<Security::ICustomSecurityHandler>&) method

Krypterar dokumentet.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, const System::SharedPtr<Facades::DocumentPrivilege> &privileges, const System::SharedPtr<Security::ICustomSecurityHandler> &customHandler)
ParameterTypBeskrivning
userPasswordconst System::String&Användarlösenord.
ownerPasswordconst System::String&Ägarlösenord.
privilegesconst System::SharedPtr<Facades::DocumentPrivilege>&Document behörigheter, se Permissions för detaljer.
customHandlerconst System::SharedPtr<Security::ICustomSecurityHandler>&Den anpassade säkerhetshanteraren.

Anmärkningar

Denna metod förbereder för kryptering. För att kryptera ett dokument måste du anropa Save‑metoden för att spara det.

Se även