Package com.itextpdf.signatures.mac
Class SignatureMacIntegrityProtector
- java.lang.Object
-
- com.itextpdf.kernel.mac.AbstractMacIntegrityProtector
-
- com.itextpdf.signatures.mac.SignatureMacIntegrityProtector
-
class SignatureMacIntegrityProtector extends AbstractMacIntegrityProtector
Class responsible for integrity protection in encrypted documents which uses MAC container in the signature mode.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
SignatureMacIntegrityProtector.SignatureMacContainerEmbedder
private class
SignatureMacIntegrityProtector.SignatureMacPdfObjectAdder
-
Field Summary
Fields Modifier and Type Field Description private static IBouncyCastleFactory
BC_FACTORY
private static java.lang.String
ID_ATTR_PDF_MAC_DATA
-
Fields inherited from class com.itextpdf.kernel.mac.AbstractMacIntegrityProtector
document, fileEncryptionKey, kdfSalt, macProperties
-
-
Constructor Summary
Constructors Constructor Description SignatureMacIntegrityProtector(PdfDocument document, MacProperties macProperties)
SignatureMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
embedMacContainerInUnsignedAttributes(IASN1EncodableVector unsignedAttributes, java.io.InputStream documentInputStream, byte[] signature)
(package private) void
prepareDocument()
-
Methods inherited from class com.itextpdf.kernel.mac.AbstractMacIntegrityProtector
createMacContainer, digestBytes, digestBytes, generateRandomBytes, getKdfSalt, setFileEncryptionKey, setKdfSalt, validateMacToken
-
-
-
-
Field Detail
-
BC_FACTORY
private static final IBouncyCastleFactory BC_FACTORY
-
ID_ATTR_PDF_MAC_DATA
private static final java.lang.String ID_ATTR_PDF_MAC_DATA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignatureMacIntegrityProtector
SignatureMacIntegrityProtector(PdfDocument document, MacProperties macProperties)
-
SignatureMacIntegrityProtector
SignatureMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary)
-
-
Method Detail
-
prepareDocument
void prepareDocument()
-
embedMacContainerInUnsignedAttributes
private void embedMacContainerInUnsignedAttributes(IASN1EncodableVector unsignedAttributes, java.io.InputStream documentInputStream, byte[] signature) throws java.io.IOException
- Throws:
java.io.IOException
-
-