public interface ISecurityHandler extends ICryptHandler
The ISystemSecurityHandler is asked for de/encryption, which is done
by himself for the defined standard encryptions, using ICryptHandler
instances for RC4 and AES. These ICryptHandler instances are
initialized using the encryption key provided by this
ISecurityHandler.
With /V 4 encryption, the application may ask for "transparent"
de/encryption, in which case it is forwarded to the installed
ISecurityHandler itself.
| Modifier and Type | Method and Description |
|---|---|
void |
attach(STDocument doc)
Associate this
ISecurityHandler with a STDocument. |
void |
authenticate()
Perform an authentication.
|
void |
detach(STDocument doc)
Disassociate this
ISecurityHandler from STDocument. |
byte[] |
getCryptKey()
The crypt key created by this
ISecurityHandler. |
void |
initialize(STDocument doc)
Initialize this
ISecurityHandler with a STDocument. |
STDocument |
stGetDoc()
The associated
STDocument. |
decrypt, encryptvoid attach(STDocument doc) throws COSSecurityException
ISecurityHandler with a STDocument.
The ISecurityHandler should add all its private information to
the document structure, in particular to the /Encrypt dictionary.
doc - COSSecurityExceptionvoid authenticate()
throws COSSecurityException
COSSecurityExceptionvoid detach(STDocument doc) throws COSSecurityException
ISecurityHandler from STDocument.
The ISecurityHandler should remove all its private information
from the document structure, in particular from the /Encrypt dictionary.
doc - COSSecurityExceptionbyte[] getCryptKey()
ISecurityHandler. The crypt key is
used by the ISystemSecurityHandler (or the ICryptHandler
to initialize its cryptographic functions.
The crypt key is valid after the authentication.
ISecurityHandler.void initialize(STDocument doc) throws COSSecurityException
ISecurityHandler with a STDocument.
The ISecurityHandler should initialize its state from the
information in the document structure, in particular from the /Encrypt
dictionary.
doc - COSSecurityExceptionSTDocument stGetDoc()
STDocument.STDocument.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.