public final class PublicKeySecurityHandler extends SecurityHandler
to see how to protect document with this security handler.| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER
The filter name.
|
keyLength| Constructor and Description |
|---|
PublicKeySecurityHandler()
Constructor.
|
PublicKeySecurityHandler(PublicKeyProtectionPolicy p)
Constructor used for encryption.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasProtectionPolicy()
Returns whether a protection policy has been set.
|
void |
prepareForDecryption(PDEncryption encryption,
COSArray documentIDArray,
DecryptionMaterial decryptionMaterial)
Prepares everything to decrypt the document.
|
decrypt, decryptDataRC4, decryptDataRC4, decryptStream, getCurrentAccessPermission, getEncryptionKey, getKeyLength, isAES, setAES, setCurrentAccessPermission, setDecryptMetadata, setEncryptionKey, setKeyLength, setStreamFilterName, setStringFilterNamepublic static final String FILTER
public PublicKeySecurityHandler()
public PublicKeySecurityHandler(PublicKeyProtectionPolicy p)
p - The protection policy.public void prepareForDecryption(PDEncryption encryption, COSArray documentIDArray, DecryptionMaterial decryptionMaterial) throws IOException
prepareForDecryption in class SecurityHandlerencryption - encryption dictionary, can be retrieved via PDDocument.getEncryption()documentIDArray - document id which is returned via
org.apache.pdfbox.cos.COSDocument#getDocumentID() (not used by this handler)decryptionMaterial - Information used to decrypt the document.IOException - If there is an error accessing data. If verbose mode is enabled, the exception message will
provide more details why the match wasn't successful.public boolean hasProtectionPolicy()
hasProtectionPolicy in class SecurityHandlerCopyright © 2020 sejda. All rights reserved.