This class represents some data used for class FSDRMSecurityHandler .
◆ dealloc
◆ getCptr
◆ init
◆ initWithCptr:swigOwnCObject:
- (id) initWithCptr: |
|
(void *) |
cptr |
swigOwnCObject: |
|
(BOOL) |
ownCObject |
|
|
| |
◆ initWithIs_encrypt_metadata:sub_filter:cipher:key_length:is_owner:user_permissions:
- (id) initWithIs_encrypt_metadata: |
|
(BOOL) |
is_encrypt_metadata |
sub_filter: |
|
(NSString *) |
sub_filter |
cipher: |
|
(FSSecurityHandlerCipherType) |
cipher |
key_length: |
|
(int) |
key_length |
is_owner: |
|
(BOOL) |
is_owner |
user_permissions: |
|
(unsigned int) |
user_permissions |
|
|
| |
◆ initWithOther:
Constructor, with another DRM encrypt data object.
- Parameters
-
[in] | other | Another DRM encrypt data object.
|
◆ set:sub_filter:cipher:key_length:is_owner:user_permissions:
- (void) set: |
|
(BOOL) |
is_encrypt_metadata |
sub_filter: |
|
(NSString *) |
sub_filter |
cipher: |
|
(FSSecurityHandlerCipherType) |
cipher |
key_length: |
|
(int) |
key_length |
is_owner: |
|
(BOOL) |
is_owner |
user_permissions: |
|
(unsigned int) |
user_permissions |
|
|
| |
Set value.
- Parameters
-
[in] | is_encrypt_metadata | YES means to encrypt metadata, and NO means not to encrypt metadata
|
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents.
|
[in] | cipher | Cipher type. Please refer to values starting from FSSecurityHandlerCipherRC4 and this should be one of these values except FSSecurityHandlerCipherNone.
|
[in] | key_length | The key length, in bytes.
For FSSecurityHandlerCipherRC4 cipher, this value should be between 5 and 16.
For FSSecurityHandlerCipherAES cipher, this value should be 16 or 32.
|
[in] | is_owner | YES means current user is owner, and NO means current user is not owner.
|
[in] | user_permissions | The user permissions. Please refer to values starting from FSPDFDocPermPrint and this can be one or combination of these values.
|
- Returns
- None.
◆ swigCMemOwn
◆ swigCPtr
◆ cipher
◆ is_encrypt_metadata
- (BOOL) is_encrypt_metadata |
|
readwritenonatomicassign |
A boolean value to decide whether to encrypt metadata or not. YES means to encrypt metadata, and NO means not to encrypt metadata.
◆ is_owner
A boolean value to decide whether current user is owner or not. YES means current user is owner, and NO means current user is not owner.
◆ key_length
◆ sub_filter
- (NSString *) sub_filter |
|
readwritenonatomiccopy |
The sub filter name that specifies the syntax of the encryption dictionary contents.
◆ user_permissions
- (unsigned int) user_permissions |
|
readwritenonatomicassign |
The user permissions. Please refer to values starting from FSPDFDocPermPrint and this can be one or combination of these values.