public interface SecurityLock
SecurityLock is composed of three attributes:
Each of these attributes is represented by an object of an appropriate type. Different implementations of the SecurityLock instantiate these attributes according to the rules of specific implementations.
Use SecurityKey.getSecurityManager()
to decrypt the document.
| Modifier and Type | Method and Description |
|---|---|
Map |
getEncryptParameters()
Get the encryption parameters map used for encryption.
|
SecurityManager |
getSecurityManager()
Return the Security Manager that contains Security Handlers used to encrypt a PDF document.
|
void |
setEncryptParameters(Map encryptParams)
Set the encryption parameter map that reflects the content of the /Encrypt dictionary
used to encrypt a PDF document.
|
boolean |
shouldEncrypt()
Determine whether the saved PDF document should be encrypted.
|
SecurityManager getSecurityManager()
SecurityManager object. May return null.void setEncryptParameters(Map encryptParams)
This Map uses the following correspondence
between PDF Types and Java Objects:
| CosBoolean | Boolean |
| CosNumeric | Number |
| CosName | String |
| CosString | Byte array |
| CosArray | ArrayList |
| CosDictionary | HashMap |
encryptParams - the encryption parameters.boolean shouldEncrypt()
true if this document should be encrypted;
false, otherwise.Map getEncryptParameters()
This Map uses the same correspondence
between PDF Types and Java Objects as in the setEncryptParameters(Map) method.
Map that contains encryption parameters. May return null.Copyright © 2010 - 2020 Adobe. All Rights Reserved