| de.intarsys.pdf.crypt.ISystemSecurityHandler
All known Subclasses: de.intarsys.pdf.crypt.SystemSecurityHandler,
ISystemSecurityHandler | public interface ISystemSecurityHandler (Code) | | 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 | |
public void | authenticate(IPasswordProvider passwordProvider) Perform an authentication of the current "user" on behalf of the
information in the encryption dictionary. | public byte[] | decryptFile(COSObjectKey key, COSDictionary dict, byte[] bytes) | public byte[] | decryptStream(COSObjectKey key, COSDictionary dict, byte[] bytes) | public byte[] | decryptString(COSObjectKey key, byte[] bytes) | public byte[] | encryptFile(COSObjectKey key, COSDictionary dict, byte[] bytes) | public byte[] | encryptStream(COSObjectKey key, COSDictionary dict, byte[] bytes) | public byte[] | encryptString(COSObjectKey key, byte[] bytes) | public ISecurityHandler | getSecurityHandler() | public void | init(STDocument document, COSEncryption encryption) |
authenticate | public void authenticate(IPasswordProvider passwordProvider) throws COSSecurityException(Code) | | Perform an authentication of the current "user" on behalf of the
information in the encryption dictionary.
In most situations this will consist of checking user/owner password and
setting the resulting access permissions.
throws: COSSecurityException - |
|
|