org.apache.fop.pdf
Interface PDFEncryption
- PDFEncryptionJCE
public interface PDFEncryption
This interface defines the contract for classes implementing PDF encryption.
applyFilter
public void applyFilter(AbstractPDFStream stream)
Adds a PDFFilter to the PDFStream object
stream
- the stream to add an encryption filter to
encrypt
public byte[] encrypt(byte[] data,
PDFObject refObj)
Encrypt an array of bytes using a reference PDFObject for calculating
the encryption key.
data
- data to encryptrefObj
- reference PDFObject
- byte[] the encrypted data
getParams
public PDFEncryptionParams getParams()
Returns the encryption parameters.
- the encryption parameters
getTrailerEntry
public String getTrailerEntry()
Returns the trailer entry for encryption.
setParams
public void setParams(PDFEncryptionParams params)
Sets the encryption parameters.
params
- The parameterss to set
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.