jPod PDF library

de.intarsys.pdf.crypt
Class SystemSecurityHandlerV2

java.lang.Object
  extended by de.intarsys.pdf.crypt.SystemSecurityHandler
      extended by de.intarsys.pdf.crypt.SystemSecurityHandlerV2
All Implemented Interfaces:
ISystemSecurityHandler

public class SystemSecurityHandlerV2
extends SystemSecurityHandler

The ISystemSecurityHandler implementing /V 2 of the PDF spec.

The crypt handler is created lazy and never changed - it is unwise to change any encryption parameters afterwards!


Field Summary
 
Fields inherited from class de.intarsys.pdf.crypt.SystemSecurityHandler
DEFAULT_LENGTH
 
Method Summary
 byte[] decryptFile(COSObjectKey key, COSDictionary dict, byte[] bytes)
           
 byte[] decryptStream(COSObjectKey key, COSDictionary dict, byte[] bytes)
           
 byte[] decryptString(COSObjectKey key, byte[] bytes)
           
 byte[] encryptFile(COSObjectKey key, COSDictionary dict, byte[] bytes)
           
 byte[] encryptStream(COSObjectKey key, COSDictionary dict, byte[] bytes)
           
 byte[] encryptString(COSObjectKey key, byte[] bytes)
           
 int getVersion()
           
 
Methods inherited from class de.intarsys.pdf.crypt.SystemSecurityHandler
attach, authenticate, cosGetEncryption, createFromSt, createNewV1, createNewV2, createNewV4, detach, getContextObject, getEncryption, getLength, getSecurityHandler, initialize, popContextObject, pushContextObject, setLength, setSecurityHandler, stGetDoc, updateTrailer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decryptFile

public byte[] decryptFile(COSObjectKey key,
                          COSDictionary dict,
                          byte[] bytes)
                   throws COSSecurityException
Throws:
COSSecurityException

decryptStream

public byte[] decryptStream(COSObjectKey key,
                            COSDictionary dict,
                            byte[] bytes)
                     throws COSSecurityException
Throws:
COSSecurityException

decryptString

public byte[] decryptString(COSObjectKey key,
                            byte[] bytes)
                     throws COSSecurityException
Throws:
COSSecurityException

encryptFile

public byte[] encryptFile(COSObjectKey key,
                          COSDictionary dict,
                          byte[] bytes)
                   throws COSSecurityException
Throws:
COSSecurityException

encryptStream

public byte[] encryptStream(COSObjectKey key,
                            COSDictionary dict,
                            byte[] bytes)
                     throws COSSecurityException
Throws:
COSSecurityException

encryptString

public byte[] encryptString(COSObjectKey key,
                            byte[] bytes)
                     throws COSSecurityException
Throws:
COSSecurityException

getVersion

public int getVersion()
Specified by:
getVersion in class SystemSecurityHandler

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.