Interface SecurityLockPKIInterface
-
- All Superinterfaces:
SecurityLock
public interface SecurityLockPKIInterface extends 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
buildRecipients(java.lang.String filterName, Identities recipients, boolean inCrypt, java.util.Map encryptParams)
Builds the recipients, which has the encrypted enveloped data packet.SecurityLockPKIInterface
makeSecurityLock(java.util.Map encryptParams, SecurityProvidersImpl providers)
Create a Security Lock object for encryption-
Methods inherited from interface com.adobe.internal.pdftoolkit.core.securityframework.SecurityLock
getEncryptParameters, getSecurityManager, setEncryptParameters, shouldEncrypt
-
-
-
-
Method Detail
-
makeSecurityLock
SecurityLockPKIInterface makeSecurityLock(java.util.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(java.lang.String filterName, Identities recipients, boolean inCrypt, java.util.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
-
-