public interface SecurityHandlerInterface
| Modifier and Type | Method and Description |
|---|---|
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.HashMap 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.
|
boolean isAuthorized(java.lang.String password)
password - password to authorizeboolean isUserAuthorized(java.lang.String password)
password - password to authorizeboolean isOwnerAuthorized(java.lang.String password)
password - password to authorizebyte[] 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.HashMap decodeParams, java.io.InputStream input)
byte[] getEncryptionKey()
byte[] getDecryptionKey()
java.lang.String getHandlerName()
Permissions getPermissions()
void init()
void dispose()