|
PDFTool
7.0
|
PDFのセキュリティハンドラおよび暗号化情報を表現したクラスです。
すべてのEncryptクラスのベースクラスです。
More...
#include <PtlEncrypt.h>

Public Types | |
| enum | FILTER_TYPE { FILTER_STANDARD = 1, FILTER_PUBKEY = 2 } |
| セキュリティハンドラのタイプ 標準セキュリティハンドラのみ対応しています。 More... | |
| enum | ENCRYPT_COMPONENT { ENCRYPT_ALL = 1, ENCRYPT_EXCEPT_METADATA = 2, ENCRYPT_ONLY_ATTACHED_FILE = 3 } |
| 暗号化する文書コンポーネント More... | |
Public Member Functions | |
| int | getHandle () const |
| PtlEncrypt (FILTER_TYPE filterType) | |
| コンストラクタ More... | |
| PtlEncrypt (const PtlEncrypt &obj) | |
| コピーコンストラクタ More... | |
| virtual | ‾PtlEncrypt () |
| デストラクタ | |
| PtlEncrypt & | operator= (const PtlEncrypt &obj) |
| コピーオペレータ More... | |
| FILTER_TYPE | getFilterType () const |
| 暗号化のフィルターを取得。 More... | |
| int | getKeyLength () const |
| キー長を取得。 More... | |
| void | setKeyLength (int keyLength) |
| キー長を設定。 More... | |
| ENCRYPT_COMPONENT | getEncryptComponent () const |
| 暗号化する文書コンポーネントを取得。 More... | |
| void | setEncryptComponent (ENCRYPT_COMPONENT component) |
| 暗号化する文書コンポーネントの設定。 More... | |
| const PtlEncryptPermission & | getPermission () const |
| ユーザアクセス許可フラグを取得。 More... | |
| void | setPermission (const PtlEncryptPermission &perm) |
| ユーザアクセス許可フラグを設定。 More... | |
PDFのセキュリティハンドラおよび暗号化情報を表現したクラスです。
すべてのEncryptクラスのベースクラスです。
| PdfTk::PtlEncrypt::PtlEncrypt | ( | FILTER_TYPE | filterType | ) |
| PdfTk::PtlEncrypt::PtlEncrypt | ( | const PtlEncrypt & | obj | ) |
| ENCRYPT_COMPONENT PdfTk::PtlEncrypt::getEncryptComponent | ( | ) | const |
| FILTER_TYPE PdfTk::PtlEncrypt::getFilterType | ( | ) | const |
| int PdfTk::PtlEncrypt::getKeyLength | ( | ) | const |
キー長を取得。
| PtlException |
| const PtlEncryptPermission& PdfTk::PtlEncrypt::getPermission | ( | ) | const |
ユーザアクセス許可フラグを取得。
| PtlException |
| PtlEncrypt& PdfTk::PtlEncrypt::operator= | ( | const PtlEncrypt & | obj | ) |
| void PdfTk::PtlEncrypt::setEncryptComponent | ( | ENCRYPT_COMPONENT | component | ) |
暗号化する文書コンポーネントの設定。
40ビットRC4の暗号化に対してENCRYPT_EXCEPT_METADATAを設定しても無視されます。
RC4の暗号化に対してENCRYPT_ONLY_ATTACHED_FILEを設定しても無視されます。
ENCRYPT_ONLY_ATTACHED_FILEを設定する場合、ユーザーパスワードは必須です。
また添付ファイルのみを暗号化するので、ユーザアクセス許可フラグが設定されているとNEED_OWNER_PASSWORDのエラーとなります。
| component | 暗号化する文書コンポーネント |
| PtlException |
| void PdfTk::PtlEncrypt::setKeyLength | ( | int | keyLength | ) |
| void PdfTk::PtlEncrypt::setPermission | ( | const PtlEncryptPermission & | perm | ) |
ユーザアクセス許可フラグを設定。
この関数は標準セキュリティハンドラでのみ有効です。
公開キーセキュリティハンドラではPtlEncryptPubKeyでアクセス権限を設定して下さい。
| perm | ユーザアクセス許可フラグ。 PtlEncryptPermissionのサブクラスPtlEncryptPermissionType1若しくはPtlEncryptPermissionType2。 |
| PtlException |
1.8.18