multivalent.std.adaptor.pdf

Class Encrypt

public class Encrypt extends Object

Encryption handler: instantiate subclass according to Filter. Encryption applies to all strings and streams in the document's PDF file, but not to other object types.

Version: $Revision: 1.13 $ $Date: 2003/08/29 04:00:10 $

See Also: SecurityHandlerStandard SecurityHandlerPublicKey

Constructor Summary
Encrypt(Dict edict, COSSource coss)
Constructs a new encryption object from parameters in an encryption dictionary.
Method Summary
CryptFiltergetCryptFilter(String name)
Returns crypt filter named name.
CryptFiltergetCryptFilter(Dict stream)
Returns crypt filter to use for stream.
SecurityHandlergetSecurityHandler()
Returns SecurityHandler associated with document.
CryptFiltergetStmF()
CryptFiltergetStrF()
intgetV()
StringtoString()

Constructor Detail

Encrypt

public Encrypt(Dict edict, COSSource coss)
Constructs a new encryption object from parameters in an encryption dictionary.

Method Detail

getCryptFilter

public CryptFilter getCryptFilter(String name)
Returns crypt filter named name.

getCryptFilter

public CryptFilter getCryptFilter(Dict stream)
Returns crypt filter to use for stream. If PDF version is >=1.5, recognizes /Crypt filter, if any.

getSecurityHandler

public SecurityHandler getSecurityHandler()
Returns SecurityHandler associated with document. It is unclear whether in PDF 1.5 a document can have more than one handler; if so this method will be removed in favor of such a method on CryptFilter.

getStmF

public CryptFilter getStmF()

getStrF

public CryptFilter getStrF()

getV

public int getV()

toString

public String toString()