Package com.itextpdf.kernel.mac
Interface IMacContainerLocator
-
- All Known Implementing Classes:
SignatureMacContainerLocator,StandaloneMacContainerLocator
public interface IMacContainerLocatorStrategy interface, which is responsible forAbstractMacIntegrityProtectorcontainer location. Expected to be used inDIContainer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractMacIntegrityProtectorcreateMacIntegrityProtector(PdfDocument document, MacProperties macProperties)CreatesAbstractMacIntegrityProtectorfrom explicitly provided MAC properties.AbstractMacIntegrityProtectorcreateMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary)CreatesAbstractMacIntegrityProtectorfrom already existing AuthCode dictionary.voidhandleMacValidationError(MacValidationException exception)Handles MAC validation error.booleanisMacContainerLocated()Indicates, if MAC container was already located.voidlocateMacContainer(AbstractMacIntegrityProtector macIntegrityProtector)LocatesAbstractMacIntegrityProtectorcontainer.
-
-
-
Method Detail
-
locateMacContainer
void locateMacContainer(AbstractMacIntegrityProtector macIntegrityProtector)
LocatesAbstractMacIntegrityProtectorcontainer.- Parameters:
macIntegrityProtector-AbstractMacIntegrityProtectorcontainer to be located
-
isMacContainerLocated
boolean isMacContainerLocated()
Indicates, if MAC container was already located.- Returns:
trueif MAC container was already located,falseotherwise
-
createMacIntegrityProtector
AbstractMacIntegrityProtector createMacIntegrityProtector(PdfDocument document, MacProperties macProperties)
CreatesAbstractMacIntegrityProtectorfrom explicitly provided MAC properties.- Parameters:
document-PdfDocumentfor which MAC container shall be createdmacProperties-MacPropertiesto be used for MAC container creation- Returns:
AbstractMacIntegrityProtectorwhich specific implementation depends on interface implementation.
-
createMacIntegrityProtector
AbstractMacIntegrityProtector createMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary)
CreatesAbstractMacIntegrityProtectorfrom already existing AuthCode dictionary.- Parameters:
document-PdfDocumentfor which MAC container shall be createdauthDictionary- AuthCodePdfDictionarywhich contains MAC related information- Returns:
AbstractMacIntegrityProtectorwhich specific implementation depends on interface implementation.
-
handleMacValidationError
void handleMacValidationError(MacValidationException exception)
Handles MAC validation error.- Parameters:
exception-MacValidationExceptionto handle.
-
-