intarsys PDF library API

de.intarsys.pdf.crypt
Class SystemSecurityHandler

java.lang.Object
  extended by de.intarsys.pdf.crypt.SystemSecurityHandler
All Implemented Interfaces:
ISystemSecurityHandler
Direct Known Subclasses:
SystemSecurityHandlerV0, SystemSecurityHandlerV1, SystemSecurityHandlerV2, SystemSecurityHandlerV3, SystemSecurityHandlerV4

public abstract class SystemSecurityHandler
extends Object
implements ISystemSecurityHandler

An abstract superclass for implementing the PDF standard security process.


Method Summary
 void authenticate(IPasswordProvider passwordProvider)
          Perform an authentication of the current "user" on behalf of the information in the encryption dictionary.
static ISystemSecurityHandler create(COSEncryption pEncryption)
           
 COSEncryption getEncryption()
           
 ISecurityHandler getSecurityHandler()
           
 void init(STDocument document, COSEncryption encryption)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.intarsys.pdf.crypt.ISystemSecurityHandler
decryptFile, decryptStream, decryptString, encryptFile, encryptStream, encryptString
 

Method Detail

create

public static ISystemSecurityHandler create(COSEncryption pEncryption)

getEncryption

public COSEncryption getEncryption()

getSecurityHandler

public ISecurityHandler getSecurityHandler()
Specified by:
getSecurityHandler in interface ISystemSecurityHandler

init

public void init(STDocument document,
                 COSEncryption encryption)
          throws COSSecurityException
Specified by:
init in interface ISystemSecurityHandler
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
Throws:
COSSecurityException

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.