public class ReaderProperties extends Object
Modifier and Type | Field and Description |
---|---|
protected Certificate |
certificate |
protected Key |
certificateKey |
protected String |
certificateKeyProvider |
protected IExternalDecryptionProcess |
externalDecryptionProcess |
protected MemoryLimitsAwareHandler |
memoryLimitsAwareHandler |
protected byte[] |
password |
Constructor and Description |
---|
ReaderProperties() |
Modifier and Type | Method and Description |
---|---|
ReaderProperties |
setMemoryLimitsAwareHandler(MemoryLimitsAwareHandler memoryLimitsAwareHandler)
Sets the memory handler which will be used to handle decompressed PDF streams.
|
ReaderProperties |
setPassword(byte[] password)
Defines the password which will be used if the document is encrypted with standard encryption.
|
ReaderProperties |
setPublicKeySecurityParams(Certificate certificate,
IExternalDecryptionProcess externalDecryptionProcess)
Defines the certificate which will be used if the document is encrypted with public key
encryption (see Pdf 1.7 specification, 7.6.4.
|
ReaderProperties |
setPublicKeySecurityParams(Certificate certificate,
Key certificateKey,
String certificateKeyProvider,
IExternalDecryptionProcess externalDecryptionProcess)
Defines the certificate which will be used if the document is encrypted with public key
encryption (see Pdf 1.7 specification, 7.6.4.
|
protected byte[] password
protected Key certificateKey
protected Certificate certificate
protected String certificateKeyProvider
protected IExternalDecryptionProcess externalDecryptionProcess
protected MemoryLimitsAwareHandler memoryLimitsAwareHandler
public ReaderProperties setPassword(byte[] password)
password
- the password to use in order to open the documentReaderProperties
instancepublic ReaderProperties setPublicKeySecurityParams(Certificate certificate, Key certificateKey, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess)
certificate
- the recipient Certificate
,
serves as recipient identifiercertificateKey
- the recipient private Key
to the certificatecertificateKeyProvider
- the certificate key provider id
for Security.getProvider(String)
externalDecryptionProcess
- the external decryption process to be usedReaderProperties
instancepublic ReaderProperties setPublicKeySecurityParams(Certificate certificate, IExternalDecryptionProcess externalDecryptionProcess)
certificate
- the recipient Certificate
,
serves as recipient identifierexternalDecryptionProcess
- the external decryption process to be usedReaderProperties
instancepublic ReaderProperties setMemoryLimitsAwareHandler(MemoryLimitsAwareHandler memoryLimitsAwareHandler)
memoryLimitsAwareHandler
- the memory handler which will be used to handle decompressed PDF streamsReaderProperties
instanceCopyright © 1998–2023 Apryse Group NV. All rights reserved.