org.icepdf.core.pobjects.security
Class CryptFilter

java.lang.Object
  extended by org.icepdf.core.pobjects.Dictionary
      extended by org.icepdf.core.pobjects.security.CryptFilter

public class CryptFilter
extends Dictionary

PDF 1.5 introduces crypt filters, which provide finer granularity control of encryption within a PDF file. The use of crypt filters involves the following structures:

Authorization to decrypt a stream shall always be obtained before the stream can be accessed. This typically occurs when the document is opened, as specified by a value of DocOpen for the AuthEvent entry in the crypt filter dictionary. Conforming readers and security handlers shall treat any attempt to access a stream for which authorization has failed as an error. AuthEvent can also be EFOpen, which indicates the presence of an embedded file that is encrypted with a crypt filter that may be different from the crypt filters used by default to encrypt strings and streams in the document.


Field Summary
 java.util.HashMap<Name,CryptFilterEntry> cryptFilters
           
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY
 
Constructor Summary
CryptFilter(Library library, java.util.HashMap entries)
           
 
Method Summary
 CryptFilterEntry getCryptFilterByName(Name cryptFilterName)
          Gets a crypt filters definition as defined in its dictionary by name.
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cryptFilters

public java.util.HashMap<Name,CryptFilterEntry> cryptFilters
Constructor Detail

CryptFilter

public CryptFilter(Library library,
                   java.util.HashMap entries)
Method Detail

getCryptFilterByName

public CryptFilterEntry getCryptFilterByName(Name cryptFilterName)
Gets a crypt filters definition as defined in its dictionary by name.

Parameters:
cryptFilterName - name of crypt filter to find.
Returns:
crypt filter entry specified by the given name. if not found null is returned.