public class CertificateEncryptionParams extends EncryptionParams
CertificateEncryptionParams
is used for certificate encryption.
It inherits from class EncryptionParams
and also contains methods to access to parameters specified for certificate encryption.
A CertificateEncryptionParams
object should be created and set,
if users want to use PDFDocument.startEncryption(EncryptionParams, com.foxit.gsdk.utils.FileHandler, int)
to do certificate encryption.CIPHER_AES, CIPHER_NONE, CIPHER_RC4
Constructor and Description |
---|
CertificateEncryptionParams()
Default constructor of CertificateEncryptionParams.
|
Modifier and Type | Method and Description |
---|---|
void |
setCipher(int cipherType)
Set the type of encryption algorithm.
|
void |
setFilePath(java.lang.String path)
Set the specified certificate file path.
|
getFilter, getParam, getSubFilter, getType, setEncryptMetadata
public CertificateEncryptionParams()
public void setFilePath(java.lang.String path) throws PDFException
CertificateEncryptionParams
object is newly created.path
- A String
object that specifies the certificate file path.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
public void setCipher(int cipherType) throws PDFException
CertificateEncryptionParams
object is newly created.cipherType
- The type of encryption algorithm. It should be one of the followings:
PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException