public class CustomEncryptionParams extends EncryptionParams
CustomEncryptionParams
is used for customized encryption.
It inherits from class EncryptionParams
and also contains methods to access to parameters specified for customized encryption.
A CustomEncryptionParams
object should be created and set,
if users want to use PDFDocument.startEncryption(EncryptionParams, com.foxit.gsdk.utils.FileHandler, int)
to do customized encryption.CIPHER_AES, CIPHER_NONE, CIPHER_RC4
Constructor and Description |
---|
CustomEncryptionParams()
Default constructor of FoxitDRMEncryptionParams.
|
Modifier and Type | Method and Description |
---|---|
void |
setEncryptInfo(java.lang.String encryptInfo)
Set the encryption information data.
|
void |
setFilter(java.lang.String filter)
Set the filter of the custom security handler.
|
void |
setSubFilter(java.lang.String subFilter)
Set the subfilter of the custom security handler.
|
getFilter, getParam, getSubFilter, getType, setEncryptMetadata
public CustomEncryptionParams()
public void setFilter(java.lang.String filter) throws PDFException
CustomEncryptionParams
object is newly created.filter
- A String
object that specifies the filter of the custom security handler. It should not be empty.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
public void setSubFilter(java.lang.String subFilter)
CustomEncryptionParams
object is newly created.subFilter
- A String
object that specifies the sub filter of the custom security handler.public void setEncryptInfo(java.lang.String encryptInfo)
CustomEncryptionParams
object is newly created.encryptInfo
- A String
object that specifies encryption information data.