intarsys PDF library API

de.intarsys.pdf.crypt
Class SystemSecurityHandlerV1

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

public class SystemSecurityHandlerV1
extends SystemSecurityHandler

The ISystemSecurityHandler implementing /V 1 of the PDF spec.


Method Summary
 void authenticate(IPasswordProvider passwordProvider)
          Perform an authentication of the current "user" on behalf of the information in the encryption dictionary.
 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)
           
 
Methods inherited from class de.intarsys.pdf.crypt.SystemSecurityHandler
create, getEncryption, getSecurityHandler, init
 
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

authenticate

public void authenticate(IPasswordProvider passwordProvider)
                  throws COSSecurityException
Description copied from interface: ISystemSecurityHandler
Perform an authentication of the current "user" on behalf of the information in the encryption dictionary.

In most situations this will consist of checking user/owner password and setting the resulting access permissions.

Specified by:
authenticate in interface ISystemSecurityHandler
Overrides:
authenticate in class SystemSecurityHandler
Throws:
COSSecurityException

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.