Метод Aspose::Pdf::Document::Encrypt

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

Шифрует документ.

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)
ПараметрТипОписание
permissionsAspose::Pdf::PermissionsDocument разрешения, см. Permissions для подробностей.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmКриптографический алгоритм, см. CryptoAlgorithm для подробностей.
publicCertificatesconst System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>>>&Публичные сертификаты, используемые для шифрования — по одному на получателя.

Примечания

Этот метод подготавливает шифрование. Чтобы зашифровать документ, необходимо вызвать метод Save для его сохранения.

См. также

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

Шифрует документ.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm)
ПараметрТипОписание
userPasswordconst System::String&Пароль пользователя.
ownerPasswordconst System::String&Пароль владельца.
permissionsAspose::Pdf::PermissionsDocument разрешения, см. Permissions для подробностей.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmКриптографический алгоритм, см. CryptoAlgorithm для подробностей.

Примечания

Этот метод подготавливает шифрование. Чтобы зашифровать документ, необходимо вызвать метод Save для его сохранения.

См. также

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

Шифрует документ.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
ПараметрТипОписание
userPasswordconst System::String&Пароль пользователя.
ownerPasswordconst System::String&Пароль владельца.
permissionsAspose::Pdf::PermissionsDocument разрешения, см. Permissions для подробностей.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmКриптографический алгоритм, см. CryptoAlgorithm для подробностей.
usePdf20boolПоддержка ревизии 6 (расширение 8).

Примечания

Этот метод подготавливает шифрование. Чтобы зашифровать документ, необходимо вызвать метод Save для его сохранения.

См. также

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

Шифрует документ.

void Aspose::Pdf::Document::Encrypt(const System::String &userPassword, const System::String &ownerPassword, Aspose::Pdf::Permissions permissions, const System::SharedPtr<Security::ICustomSecurityHandler> &customHandler)
ПараметрТипОписание
userPasswordconst System::String&Пароль пользователя.
ownerPasswordconst System::String&Пароль владельца.
permissionsAspose::Pdf::PermissionsDocument разрешения, см. Permissions для подробностей.
customHandlerconst System::SharedPtr<Security::ICustomSecurityHandler>&Пользовательский обработчик безопасности.

Примечания

Этот метод подготавливает шифрование. Чтобы зашифровать документ, необходимо вызвать метод Save для его сохранения.

См. также

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

Шифрует документ.

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)
ПараметрТипОписание
userPasswordconst System::String&Пароль пользователя.
ownerPasswordconst System::String&Пароль владельца.
privilegesconst System::SharedPtr<Facades::DocumentPrivilege>&Document разрешения, см. Permissions для подробностей.
cryptoAlgorithmAspose::Pdf::CryptoAlgorithmКриптографический алгоритм, см. CryptoAlgorithm для подробностей.
usePdf20boolПоддержка ревизии 6 (расширение 8).

Примечания

Этот метод подготавливает шифрование. Чтобы зашифровать документ, необходимо вызвать метод Save для его сохранения.

См. также

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

Шифрует документ.

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)
ПараметрТипОписание
userPasswordconst System::String&Пароль пользователя.
ownerPasswordconst System::String&Пароль владельца.
privilegesconst System::SharedPtr<Facades::DocumentPrivilege>&Document разрешения, см. Permissions для подробностей.
customHandlerconst System::SharedPtr<Security::ICustomSecurityHandler>&Пользовательский обработчик безопасности.

Примечания

Этот метод подготавливает шифрование. Чтобы зашифровать документ, необходимо вызвать метод Save для его сохранения.

См. также