|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISystemSecurityHandler
This object is responsible to manage the PDF documents security context and object de/encryption. It implements the security mechanics as described in the PDF spec up to revision 4.
The ISystemSecurityHandler
dispatches de/encryption to either the
standard ICryptHandler
instances or (with /V 4 encryption) the
ISecurityHandler
installed.
Method Summary | |
---|---|
void |
authenticate(IPasswordProvider passwordProvider)
Perform an authentication of the current "user" on behalf of the information in the encryption dictionary. |
byte[] |
decryptFile(COSObjectKey key,
COSDictionary dict,
byte[] bytes)
|
byte[] |
decryptStream(COSObjectKey key,
COSDictionary dict,
byte[] bytes)
|
byte[] |
decryptString(COSObjectKey key,
byte[] bytes)
|
byte[] |
encryptFile(COSObjectKey key,
COSDictionary dict,
byte[] bytes)
|
byte[] |
encryptStream(COSObjectKey key,
COSDictionary dict,
byte[] bytes)
|
byte[] |
encryptString(COSObjectKey key,
byte[] bytes)
|
ISecurityHandler |
getSecurityHandler()
|
void |
init(STDocument document,
COSEncryption encryption)
|
Method Detail |
---|
byte[] decryptString(COSObjectKey key, byte[] bytes) throws COSSecurityException
COSSecurityException
byte[] decryptStream(COSObjectKey key, COSDictionary dict, byte[] bytes) throws COSSecurityException
COSSecurityException
byte[] decryptFile(COSObjectKey key, COSDictionary dict, byte[] bytes) throws COSSecurityException
COSSecurityException
byte[] encryptString(COSObjectKey key, byte[] bytes) throws COSSecurityException
COSSecurityException
byte[] encryptStream(COSObjectKey key, COSDictionary dict, byte[] bytes) throws COSSecurityException
COSSecurityException
byte[] encryptFile(COSObjectKey key, COSDictionary dict, byte[] bytes) throws COSSecurityException
COSSecurityException
ISecurityHandler getSecurityHandler()
void init(STDocument document, COSEncryption encryption) throws COSSecurityException
COSSecurityException
void authenticate(IPasswordProvider passwordProvider) throws COSSecurityException
In most situations this will consist of checking user/owner password and setting the resulting access permissions.
COSSecurityException
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |