|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.pdf.crypt.SystemSecurityHandler
public abstract class SystemSecurityHandler
An abstract superclass for implementing the PDF security process.
| Field Summary | |
|---|---|
static int |
DEFAULT_LENGTH
|
| 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 |
| Field Detail |
|---|
public static final int DEFAULT_LENGTH
| Method Detail |
|---|
public static SystemSecurityHandler createFromSt(STDocument doc)
throws COSSecurityException
COSSecurityExceptionpublic static SystemSecurityHandler createNewV1()
public static SystemSecurityHandler createNewV2()
public static SystemSecurityHandler createNewV4()
public void attach(STDocument stDoc)
throws COSSecurityException
ISystemSecurityHandlerISystemSecurityHandler with a STDocument.
The ISystemSecurityHandler should add all its private information
to the document structure, in particular to the /Encrypt dictionary.
attach in interface ISystemSecurityHandlerCOSSecurityException
public void authenticate()
throws COSSecurityException
ISystemSecurityHandlerISecurityHandler.
authenticate in interface ISystemSecurityHandlerCOSSecurityExceptionpublic COSDictionary cosGetEncryption()
public void detach(STDocument stDoc)
throws COSSecurityException
ISystemSecurityHandlerISystemSecurityHandler from STDocument.
The ISystemSecurityHandler should remove all its private
information from the document structure, in particular from the /Encrypt
dictionary.
detach in interface ISystemSecurityHandlerCOSSecurityExceptionpublic COSCompositeObject getContextObject()
ISystemSecurityHandler
getContextObject in interface ISystemSecurityHandlerpublic COSEncryption getEncryption()
public int getLength()
ISystemSecurityHandler
getLength in interface ISystemSecurityHandlerpublic ISecurityHandler getSecurityHandler()
ISystemSecurityHandlerISecurityHandler.
By default this is one of the StandardSecurityHandler instances,
implementing security behavior of the /Standard security defined in PDF
spec.
getSecurityHandler in interface ISystemSecurityHandlerISecurityHandler.public abstract int getVersion()
public void initialize(STDocument doc)
throws COSSecurityException
ISystemSecurityHandlerISystemSecurityHandler with a STDocument.
The ISystemSecurityHandler should initialize its state from the
information in the document structure, in particular from the /Encrypt
dictionary.
initialize in interface ISystemSecurityHandlerCOSSecurityExceptionpublic COSCompositeObject popContextObject()
ISystemSecurityHandler
popContextObject in interface ISystemSecurityHandlerpublic void pushContextObject(COSCompositeObject contextObject)
ISystemSecurityHandler
pushContextObject in interface ISystemSecurityHandlercontextObject - The new active container.public void setLength(int length)
public void setSecurityHandler(ISecurityHandler pSecurityHandler)
throws COSSecurityException
ISystemSecurityHandlerISecurityHandler.
setSecurityHandler in interface ISystemSecurityHandlerpSecurityHandler - The new ISecurityHandler.
COSSecurityExceptionpublic STDocument stGetDoc()
ISystemSecurityHandlerSTDocument.
stGetDoc in interface ISystemSecurityHandlerSTDocument.public void updateTrailer(COSDictionary trailer)
ISystemSecurityHandlerISystemSecurityHandler.
updateTrailer in interface ISystemSecurityHandler
|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||