jPod PDF library

de.intarsys.pdf.crypt
Class AbstractSecurityHandler

java.lang.Object
  extended by de.intarsys.pdf.crypt.AbstractSecurityHandler
All Implemented Interfaces:
ICryptHandler, ISecurityHandler
Direct Known Subclasses:
StandardSecurityHandler

public abstract class AbstractSecurityHandler
extends Object
implements ISecurityHandler

An abstract superclass for implementing ISecurityHandler.


Method Summary
 void attach(STDocument stDoc)
          Associate this ISecurityHandler with a STDocument.
 COSDictionary cosGetEncryption()
           
 void detach(STDocument stDoc)
          Disassociate this ISecurityHandler from STDocument.
 COSEncryption getEncryption()
           
 void initialize(STDocument stDoc)
          Initialize this ISecurityHandler with a STDocument.
 STDocument stGetDoc()
          The associated STDocument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.intarsys.pdf.crypt.ISecurityHandler
authenticate, getCryptKey
 
Methods inherited from interface de.intarsys.pdf.crypt.ICryptHandler
decrypt, encrypt
 

Method Detail

attach

public void attach(STDocument stDoc)
Description copied from interface: ISecurityHandler
Associate this ISecurityHandler with a STDocument.

The ISecurityHandler should add all its private information to the document structure, in particular to the /Encrypt dictionary.

Specified by:
attach in interface ISecurityHandler

cosGetEncryption

public COSDictionary cosGetEncryption()

detach

public void detach(STDocument stDoc)
            throws COSSecurityException
Description copied from interface: ISecurityHandler
Disassociate this ISecurityHandler from STDocument.

The ISecurityHandler should remove all its private information from the document structure, in particular from the /Encrypt dictionary.

Specified by:
detach in interface ISecurityHandler
Throws:
COSSecurityException

getEncryption

public COSEncryption getEncryption()

initialize

public void initialize(STDocument stDoc)
Description copied from interface: ISecurityHandler
Initialize this ISecurityHandler with a STDocument.

The ISecurityHandler should initialize its state from the information in the document structure, in particular from the /Encrypt dictionary.

Specified by:
initialize in interface ISecurityHandler

stGetDoc

public STDocument stGetDoc()
Description copied from interface: ISecurityHandler
The associated STDocument.

Specified by:
stGetDoc in interface ISecurityHandler
Returns:
The associated STDocument.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.