public abstract class PubKeySecurityHandler extends SecurityHandler
extra, md5, mkey, nextObjectKey, nextObjectKeySize
Modifier | Constructor and Description |
---|---|
protected |
PubKeySecurityHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAllRecipients(Certificate[] certs, int[] permissions) |
protected byte[] |
computeGlobalKey(String messageDigestAlgorithm, boolean encryptMetadata) |
protected static byte[] |
computeGlobalKeyOnReading(PdfDictionary encryptionDictionary, PrivateKey certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata, String digestAlgorithm) |
protected PdfArray |
createRecipientsArray() |
protected abstract String |
getDigestAlgorithm() |
protected abstract void |
initKey(byte[] globalKey, int keyLength) |
protected void |
initKeyAndFillDictionary(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly) |
protected void |
initKeyAndReadDictionary(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata) |
protected abstract void |
setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly) |
getDecryptor, getEncryptionStream, setHashKeyForNextObject
protected byte[] computeGlobalKey(String messageDigestAlgorithm, boolean encryptMetadata)
protected static byte[] computeGlobalKeyOnReading(PdfDictionary encryptionDictionary, PrivateKey certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata, String digestAlgorithm)
protected void addAllRecipients(Certificate[] certs, int[] permissions)
protected PdfArray createRecipientsArray()
protected abstract void setPubSecSpecificHandlerDicEntries(PdfDictionary encryptionDictionary, boolean encryptMetadata, boolean embeddedFilesOnly)
protected abstract String getDigestAlgorithm()
protected abstract void initKey(byte[] globalKey, int keyLength)
protected void initKeyAndFillDictionary(PdfDictionary encryptionDictionary, Certificate[] certs, int[] permissions, boolean encryptMetadata, boolean embeddedFilesOnly)
protected void initKeyAndReadDictionary(PdfDictionary encryptionDictionary, Key certificateKey, Certificate certificate, String certificateKeyProvider, IExternalDecryptionProcess externalDecryptionProcess, boolean encryptMetadata)
Copyright © 1998–2017 iText Group NV. All rights reserved.