Package com.itextpdf.kernel.mac
Interface IMacContainerLocator
-
- All Known Implementing Classes:
SignatureMacContainerLocator
,StandaloneMacContainerLocator
public interface IMacContainerLocator
Strategy interface, which is responsible forAbstractMacIntegrityProtector
container location. Expected to be used inDIContainer
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractMacIntegrityProtector
createMacIntegrityProtector(PdfDocument document, MacProperties macProperties)
CreatesAbstractMacIntegrityProtector
from explicitly provided MAC properties.AbstractMacIntegrityProtector
createMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary)
CreatesAbstractMacIntegrityProtector
from already existing AuthCode dictionary.void
handleMacValidationError(MacValidationException exception)
Handles MAC validation error.boolean
isMacContainerLocated()
Indicates, if MAC container was already located.void
locateMacContainer(AbstractMacIntegrityProtector macIntegrityProtector)
LocatesAbstractMacIntegrityProtector
container.
-
-
-
Method Detail
-
locateMacContainer
void locateMacContainer(AbstractMacIntegrityProtector macIntegrityProtector)
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 createdmacProperties
-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 createdauthDictionary
- AuthCodePdfDictionary
which contains MAC related information- Returns:
AbstractMacIntegrityProtector
which specific implementation depends on interface implementation.
-
handleMacValidationError
void handleMacValidationError(MacValidationException exception)
Handles MAC validation error.- Parameters:
exception
-MacValidationException
to handle.
-
-