Java Doc for ICryptHandler.java in » PDF » jPod » de » intarsys » pdf » crypt » Java Source Code / Java DocumentationJava Source Code and Java Documentation
The encryption/decryption algorithm for a PDF document. This object does the
real crypt work, whereas the context like initialization steps,
authenthication, authorization is done by the
ISecurityHandler and
ISystemSecurityHandler .
PDF security /V4 defines two standard algorithms, RC4 and AES based.
Additionally a transparent algorithm provided by a
ISecurityHandler can be used.
Method Summary
public byte[]
decrypt(COSObjectKey key, byte[] bytes) Decrypt any bytes in the context of COSObject referenced by the provided
key.
public byte[]
encrypt(COSObjectKey key, byte[] bytes) Encrypt any bytes in the context of COSObject referenced by the provided
key.
Decrypt any bytes in the context of COSObject referenced by the provided
key.
Parameters: key - of the object which provides the context Parameters: bytes - to decrypt the decrypted bytes throws: COSSecurityException -
Encrypt any bytes in the context of COSObject referenced by the provided
key.
Parameters: key - of the object which provides the context Parameters: bytes - to decrypt the encrypted bytes throws: COSSecurityException -