|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SecurityHandlerInterface
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. |
java.io.InputStream |
getEncryptionInputStream(Reference objectReference,
byte[] encryptionKey,
java.util.Hashtable decodeParams,
java.io.InputStream input)
|
byte[] |
getEncryptionKey()
Gets the encryption key used by the security handler for encrypting data. |
java.lang.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(java.lang.String password)
Determines whether the supplied password is authorized to view the PDF document. |
boolean |
isOwnerAuthorized(java.lang.String password)
Determines whether the supplied owner password is authorized to view the PDF document. |
boolean |
isUserAuthorized(java.lang.String password)
Determines whether the supplied user password is authorized to view the PDF document. |
| Method Detail |
|---|
boolean isAuthorized(java.lang.String password)
password - password to authorize
boolean isUserAuthorized(java.lang.String password)
password - password to authorize
boolean isOwnerAuthorized(java.lang.String password)
password - password to authorize
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.
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.
java.io.InputStream getEncryptionInputStream(Reference objectReference,
byte[] encryptionKey,
java.util.Hashtable decodeParams,
java.io.InputStream input)
byte[] getEncryptionKey()
byte[] getDecryptionKey()
java.lang.String getHandlerName()
Permissions getPermissions()
void init()
void dispose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||