Package com.itextpdf.signatures.mac
Class SignatureMacIntegrityProtector
java.lang.Object
com.itextpdf.kernel.mac.AbstractMacIntegrityProtector
com.itextpdf.signatures.mac.SignatureMacIntegrityProtector
Class responsible for integrity protection in encrypted documents which uses MAC container in the signature mode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
private final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IBouncyCastleFactory
private static final String
Fields inherited from class com.itextpdf.kernel.mac.AbstractMacIntegrityProtector
document, fileEncryptionKey, kdfSalt, macProperties
-
Constructor Summary
ConstructorsConstructorDescriptionSignatureMacIntegrityProtector
(PdfDocument document, MacProperties macProperties) SignatureMacIntegrityProtector
(PdfDocument document, PdfDictionary authDictionary) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
embedMacContainerInUnsignedAttributes
(IASN1EncodableVector unsignedAttributes, InputStream documentInputStream, byte[] signature) (package private) void
Methods inherited from class com.itextpdf.kernel.mac.AbstractMacIntegrityProtector
createMacContainer, digestBytes, digestBytes, generateRandomBytes, getKdfSalt, setFileEncryptionKey, setKdfSalt, validateMacToken
-
Field Details
-
BC_FACTORY
-
ID_ATTR_PDF_MAC_DATA
- See Also:
-
-
Constructor Details
-
SignatureMacIntegrityProtector
SignatureMacIntegrityProtector(PdfDocument document, MacProperties macProperties) -
SignatureMacIntegrityProtector
SignatureMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary)
-
-
Method Details
-
prepareDocument
void prepareDocument() -
embedMacContainerInUnsignedAttributes
private void embedMacContainerInUnsignedAttributes(IASN1EncodableVector unsignedAttributes, InputStream documentInputStream, byte[] signature) throws IOException - Throws:
IOException
-