Summary: Inherited Constants | Ctors | Inherited Methods | [Expand All]
public class

# PDFTronCustomSecurityHandler

extends SecurityHandler

java.lang.Object
↳ | com.pdftron.sdf.SecurityHandler
| ↳ | com.pdftron.sdf.PDFTronCustomSecurityHandler

## Class Overview

This class represents PDFTron Custom Security handler that applies PDFTron's custom encryption method on save.

## Summary

[Expand] Inherited Constants
From class com.pdftron.sdf.SecurityHandler
int | e_AES | Use Crypt filters with 128-bit AES (Advanced Encryption Standard) algorithm.
int | e_AES_256 | Use Crypt filters with 256-bit AES (Advanced Encryption Standard) algorithm.
int | e_RC4_128 | 128-bit RC4 algorithm.
int | e_RC4_40 | The algorithm Constants to be used in encrypting and decrypting the document.
int | e_access_support | The Constant e_access_support.
int | e_assemble_doc | The Constant e_assemble_doc.
int | e_doc_modify | The Constant e_doc_modify.
int | e_doc_open | The Constant e_doc_open.
int | e_extract_content | The Constant e_extract_content.
int | e_fill_forms | The Constant e_fill_forms.
int | e_mod_annot | The Constant e_mod_annot.
int | e_owner | The Constant e_owner.
int | e_print | The Constant e_print.
int | e_print_high | The Constant e_print_high.

Public Constructors
| PDFTronCustomSecurityHandler(int custom_id) constructor

[Expand] Inherited Methods
From class com.pdftron.sdf.SecurityHandler
static SecurityHandler | __Create(long impl, Object ref)
long | __GetHandle()
void | __SetRefHandle(Object ref)
void | changeMasterPassword(byte[] passwordBuffer) Modify the master/owner password.
void | changeMasterPassword(String password) Modify the master password.
void | changeRevisionNumber(int rev_num) Change the revision number and the encryption algorithm of the standard security handler.
void | changeUserPassword(byte[] passwordBuffer) Modify the user password.
void | changeUserPassword(String password) Modify the user password.
Object | clone()
void | close() Frees the native memory of the object.
void | destroy() Frees the native memory of the object.
int | getEncryptionAlgorithmID() Get the encryption algorithm ID.
String | getHandlerDocName() Get the name of SecurityHandler.
int | getKeyLength() Get the encryption key length.
String | getMasterPassword() Get the master password.
boolean | getPermission(int type) Get the security permission.
int | getRevisionNumber() Get the revision number.
String | getUserPassword() Get the user password.
boolean | isAES() Checks if encryption is AES.
boolean | isAES(Obj stream) The following function can be used to verify whether a given stream is encrypted using AES.
boolean | isMasterPasswordRequired() Checks if is master password required.
boolean | isModified() Checks if SecurityHandler is modified.
boolean | isRC4() Checks if encryption is RC4.
boolean | isUserPasswordRequired() Checks if is user password required.
void | setEncryptMetadata(boolean encrypt_metadata) Indicates whether the document-level metadata stream is to be encrypted.
void | setModified() The method allows derived classes to set SecurityHandler is modified flag.
void | setModified(boolean is_modified) The method allows derived classes to set SecurityHandler is modified flag.
void | setPermission(int perm, boolean value) Set the permission setting of the StdSecurityHandler.
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## Public Constructors

#### public PDFTronCustomSecurityHandler (int custom_id)

constructor

##### Parameters

custom_id | the user's custom ID. A random ID is suggested to make the custom security unique to the application. Note: Please refer to PDFNet.addPDFTronCustomHandler(int custom_id) for more details.

##### Throws

PDFNetException |