|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The interface for objects which defines a Security Handler for a PDF document. A custom Security Handlers should implement this interface.
| Method Summary | |
byte[] |
decrypt(Reference objectReference,
byte[] encryptionKey,
byte[] data)
Decrypt the PDF data bytestream or string. |
void |
dispose()
Dispose of the security handler. |
byte[] |
encrypt(Reference objectReference,
byte[] encryptionKey,
byte[] data)
Encrypt the PDF data bytestream or string. |
byte[] |
getDecryptionKey()
Gets the encryption key used by the security handler for decryption data. |
InputStream |
getEncryptionInputStream(Reference objectReference,
byte[] encryptionKey,
InputStream input)
|
byte[] |
getEncryptionKey()
Gets the encryption key used by the security handler for encrypting data. |
String |
getHandlerName()
Gets the name of the default security handler. |
Permissions |
getPermissions()
Gets the PDF permissions object associated with this document's security handler. |
void |
init()
Initiate the security handler |
boolean |
isAuthorized(String password)
Determines whether the supplied password is authorized to view the PDF document. |
boolean |
isOwnerAuthorized(String password)
Determines whether the supplied owner password is authorized to view the PDF document. |
boolean |
isUserAuthorized(String password)
Determines whether the supplied user password is authorized to view the PDF document. |
| Method Detail |
public boolean isAuthorized(String password)
password - password to authorize
public boolean isUserAuthorized(String password)
password - password to authorize
public boolean isOwnerAuthorized(String password)
password - password to authorize
public byte[] encrypt(Reference objectReference,
byte[] encryptionKey,
byte[] data)
objectReference - reference to PDF object being encrypted; this object
contains the PDF object number and revision.encryptionKey - encryption key used by encryption algorithm.data - byte data to be encrypted; either represents an object stream
or string value.
public byte[] decrypt(Reference objectReference,
byte[] encryptionKey,
byte[] data)
objectReference - reference to PDF object being encrypted; this object
contains the PDF object number and revision.encryptionKey - encryption key used by decryption algorithm.data - byte data to be decrypted; either represents an object stream
or string value.
public InputStream getEncryptionInputStream(Reference objectReference,
byte[] encryptionKey,
InputStream input)
public byte[] getEncryptionKey()
public byte[] getDecryptionKey()
public String getHandlerName()
public Permissions getPermissions()
public void init()
public void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||