Package com.itextpdf.kernel.mac
Interface IMacContainerLocator
- All Known Implementing Classes:
-
SignatureMacContainerLocator
,StandaloneMacContainerLocator
public interface IMacContainerLocator
Strategy interface, which is responsible for
AbstractMacIntegrityProtector
container location. Expected to be used in DIContainer
.
-
Method Summary
Modifier and TypeMethodDescriptioncreateMacIntegrityProtector
(PdfDocument document, MacProperties macProperties) CreatesAbstractMacIntegrityProtector
from explicitly provided MAC properties.createMacIntegrityProtector
(PdfDocument document, PdfDictionary authDictionary) CreatesAbstractMacIntegrityProtector
from already existing AuthCode dictionary.void
handleMacValidationError
(MacValidationException exception) Handles MAC validation error.boolean
Indicates, if MAC container was already located.void
locateMacContainer
(AbstractMacIntegrityProtector macIntegrityProtector) LocatesAbstractMacIntegrityProtector
container.
-
Method Details
-
locateMacContainer
LocatesAbstractMacIntegrityProtector
container.- Parameters:
-
macIntegrityProtector
-AbstractMacIntegrityProtector
container to be located
-
isMacContainerLocated
boolean isMacContainerLocated()Indicates, if MAC container was already located.- Returns:
-
true
if MAC container was already located,false
otherwise
-
createMacIntegrityProtector
AbstractMacIntegrityProtector createMacIntegrityProtector(PdfDocument document, MacProperties macProperties) CreatesAbstractMacIntegrityProtector
from explicitly provided MAC properties.- Parameters:
-
document
-PdfDocument
for which MAC container shall be created -
macProperties
-MacProperties
to be used for MAC container creation - Returns:
-
AbstractMacIntegrityProtector
which specific implementation depends on interface implementation.
-
createMacIntegrityProtector
AbstractMacIntegrityProtector createMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary) CreatesAbstractMacIntegrityProtector
from already existing AuthCode dictionary.- Parameters:
-
document
-PdfDocument
for which MAC container shall be created -
authDictionary
- AuthCodePdfDictionary
which contains MAC related information - Returns:
-
AbstractMacIntegrityProtector
which specific implementation depends on interface implementation.
-
handleMacValidationError
Handles MAC validation error.- Parameters:
-
exception
-MacValidationException
to handle.
-