|
intarsys PDF library API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISecurityHandler
The security handler as defined in the PDF spec. This is the exchangeable behavior in the PDF security spec.
The ISystemSecurityHandler is asked for de/encryption, which is done
by himself for the defined standard encryptions, using ICryptHandler
instances for RC4 and AES. These ICryptHandler instances are
initialized using the encryption key provided by this
ISecurityHandler.
With /V 4 encryption, thhe application may ask for "transparent"
de/encryption, in which case it is forwared to the installed
ISecurityHandler itself.
| Method Summary | |
|---|---|
void |
authenticate(IPasswordProvider passwordProvider)
Perform an authentication of the current "user" on behalf of the information in the encryption dictionary. |
IAccessPermissions |
getAccessPermissions()
The access permissions encoded in the encryption object for the current document or null if not applicable. |
byte[] |
getCryptKey()
|
void |
init(STDocument document,
COSEncryption encryption)
|
| Methods inherited from interface de.intarsys.pdf.crypt.ICryptHandler |
|---|
decrypt, encrypt |
| Method Detail |
|---|
void authenticate(IPasswordProvider passwordProvider)
throws COSSecurityException
In most situations this will consist of checking user/owner password and setting the resulting access permissions.
COSSecurityExceptionbyte[] getCryptKey()
void init(STDocument document,
COSEncryption encryption)
throws COSSecurityException
COSSecurityExceptionIAccessPermissions getAccessPermissions()
The access permissions are not standardized, may be these are not available from arbitrary handlers.
|
intarsys PDF library API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||