|
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
COSSecurityException
public static SystemSecurityHandler createNewV1()
public static SystemSecurityHandler createNewV2()
public static SystemSecurityHandler createNewV4()
public void attach(STDocument stDoc) throws COSSecurityException
ISystemSecurityHandler
ISystemSecurityHandler
with a STDocument
.
The ISystemSecurityHandler
should add all its private information
to the document structure, in particular to the /Encrypt dictionary.
attach
in interface ISystemSecurityHandler
COSSecurityException
public void authenticate() throws COSSecurityException
ISystemSecurityHandler
ISecurityHandler
.
authenticate
in interface ISystemSecurityHandler
COSSecurityException
public COSDictionary cosGetEncryption()
public void detach(STDocument stDoc) throws COSSecurityException
ISystemSecurityHandler
ISystemSecurityHandler
from STDocument
.
The ISystemSecurityHandler
should remove all its private
information from the document structure, in particular from the /Encrypt
dictionary.
detach
in interface ISystemSecurityHandler
COSSecurityException
public COSCompositeObject getContextObject()
ISystemSecurityHandler
getContextObject
in interface ISystemSecurityHandler
public COSEncryption getEncryption()
public int getLength()
ISystemSecurityHandler
getLength
in interface ISystemSecurityHandler
public ISecurityHandler getSecurityHandler()
ISystemSecurityHandler
ISecurityHandler
.
By default this is one of the StandardSecurityHandler
instances,
implementing security behavior of the /Standard security defined in PDF
spec.
getSecurityHandler
in interface ISystemSecurityHandler
ISecurityHandler
.public abstract int getVersion()
public void initialize(STDocument doc) throws COSSecurityException
ISystemSecurityHandler
ISystemSecurityHandler
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 ISystemSecurityHandler
COSSecurityException
public COSCompositeObject popContextObject()
ISystemSecurityHandler
popContextObject
in interface ISystemSecurityHandler
public void pushContextObject(COSCompositeObject contextObject)
ISystemSecurityHandler
pushContextObject
in interface ISystemSecurityHandler
contextObject
- The new active container.public void setLength(int length)
public void setSecurityHandler(ISecurityHandler pSecurityHandler) throws COSSecurityException
ISystemSecurityHandler
ISecurityHandler
.
setSecurityHandler
in interface ISystemSecurityHandler
pSecurityHandler
- The new ISecurityHandler
.
COSSecurityException
public STDocument stGetDoc()
ISystemSecurityHandler
STDocument
.
stGetDoc
in interface ISystemSecurityHandler
STDocument
.public void updateTrailer(COSDictionary trailer)
ISystemSecurityHandler
ISystemSecurityHandler
.
updateTrailer
in interface ISystemSecurityHandler
|
jPod PDF library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |