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 document
ReaderProperties instance
public ReaderProperties setPublicKeySecurityParams(Certificate certificate, Key certificateKey, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess)
certificate - the recipient Certificate, serves as recipient identifier
certificateKey - the recipient private Key to the certificate
certificateKeyProvider - the certificate key provider id for Security.getProvider(String)
externalDecryptionProcess - the external decryption process to be used
ReaderProperties instance
public ReaderProperties setPublicKeySecurityParams(Certificate certificate, IExternalDecryptionProcess externalDecryptionProcess)
certificate - the recipient Certificate, serves as recipient identifier
externalDecryptionProcess - the external decryption process to be used
ReaderProperties instance
public ReaderProperties setMemoryLimitsAwareHandler(MemoryLimitsAwareHandler memoryLimitsAwareHandler)
memoryLimitsAwareHandler - the memory handler which will be used to handle decompressed PDF streams
ReaderProperties instance
Copyright © 1998–2022 iText Group NV. All rights reserved.