fop 0.95

org.apache.fop.pdf
Interface PDFEncryption

All Known Implementing Classes:
PDFEncryptionJCE

public interface PDFEncryption

This interface defines the contract for classes implementing PDF encryption.


Method Summary
 void applyFilter(AbstractPDFStream stream)
          Adds a PDFFilter to the PDFStream object
 byte[] encrypt(byte[] data, PDFObject refObj)
          Encrypt an array of bytes using a reference PDFObject for calculating the encryption key.
 PDFEncryptionParams getParams()
          Returns the encryption parameters.
 java.lang.String getTrailerEntry()
          Returns the trailer entry for encryption.
 void setParams(PDFEncryptionParams params)
          Sets the encryption parameters.
 

Method Detail

getParams

PDFEncryptionParams getParams()
Returns the encryption parameters.

Returns:
the encryption parameters

setParams

void setParams(PDFEncryptionParams params)
Sets the encryption parameters.

Parameters:
params - The parameterss to set

applyFilter

void applyFilter(AbstractPDFStream stream)
Adds a PDFFilter to the PDFStream object

Parameters:
stream - the stream to add an encryption filter to

encrypt

byte[] encrypt(byte[] data,
               PDFObject refObj)
Encrypt an array of bytes using a reference PDFObject for calculating the encryption key.

Parameters:
data - data to encrypt
refObj - reference PDFObject
Returns:
byte[] the encrypted data

getTrailerEntry

java.lang.String getTrailerEntry()
Returns the trailer entry for encryption.

Returns:
the trailer entry

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.