Interface SecurityLockPKIInterface
- All Superinterfaces:
SecurityLock
This is a Security Lock factory that
can be used to instantiate different varieties of the password-based Security Locks.
Note: When the abstract methods declared in this class are implemented
by the user, they will be contained in the objects that newInstance() methods return.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]buildRecipients(String filterName, Identities recipients, boolean inCrypt, Map encryptParams) Builds the recipients, which has the encrypted enveloped data packet.makeSecurityLock(Map encryptParams, SecurityProvidersImpl providers) Create a Security Lock object for encryptionMethods inherited from interface com.adobe.internal.pdftoolkit.core.securityframework.SecurityLock
getEncryptParameters, getSecurityManager, setEncryptParameters, shouldEncrypt
-
Method Details
-
makeSecurityLock
SecurityLockPKIInterface makeSecurityLock(Map encryptParams, SecurityProvidersImpl providers) throws PDFSecurityException Create a Security Lock object for encryption
- Parameters:
encryptParams- Encryption Parameters Map.- Returns:
- a Security Lock object for encryption.
- Throws:
PDFSecurityException
-
buildRecipients
byte[] buildRecipients(String filterName, Identities recipients, boolean inCrypt, Map encryptParams) throws PDFSecurityException Builds the recipients, which has the encrypted enveloped data packet. This enveloped data packet is encrypted using the identities and encrypt parameters. Returns encrypted enveloped data packet, which contains all the information like algorithms used and encrypted data.
- Parameters:
filterName-recipients-inCrypt-encryptParams-- Returns:
- byte[]
- Throws:
PDFSecurityException
-