public class StandaloneMacContainerLocator extends Object implements IMacContainerLocator
AbstractMacIntegrityProtector location strategy, which locates MAC container in document's trailer.| Constructor and Description |
|---|
StandaloneMacContainerLocator() |
| Modifier and Type | Method and Description |
|---|---|
AbstractMacIntegrityProtector |
createMacIntegrityProtector(PdfDocument document,
MacProperties macProperties)
Creates
AbstractMacIntegrityProtector from explicitly provided MAC properties. |
AbstractMacIntegrityProtector |
createMacIntegrityProtector(PdfDocument document,
PdfDictionary authDictionary)
Creates
AbstractMacIntegrityProtector 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)
Locates
AbstractMacIntegrityProtector container. |
public void locateMacContainer(AbstractMacIntegrityProtector macIntegrityProtector)
AbstractMacIntegrityProtector container..locateMacContainer in interface IMacContainerLocatormacIntegrityProtector - AbstractMacIntegrityProtector container to be locatedpublic boolean isMacContainerLocated()
isMacContainerLocated in interface IMacContainerLocatortrue if MAC container was already located, false otherwisepublic AbstractMacIntegrityProtector createMacIntegrityProtector(PdfDocument document, MacProperties macProperties)
AbstractMacIntegrityProtector from explicitly provided MAC properties..createMacIntegrityProtector in interface IMacContainerLocatordocument - PdfDocument for which MAC container shall be createdmacProperties - MacProperties to be used for MAC container creationAbstractMacIntegrityProtector which specific implementation depends on interface implementation.public AbstractMacIntegrityProtector createMacIntegrityProtector(PdfDocument document, PdfDictionary authDictionary)
AbstractMacIntegrityProtector from already existing AuthCode dictionary..createMacIntegrityProtector in interface IMacContainerLocatordocument - PdfDocument for which MAC container shall be createdauthDictionary - AuthCode PdfDictionary which contains MAC related informationAbstractMacIntegrityProtector which specific implementation depends on interface implementation.public void handleMacValidationError(MacValidationException exception)
handleMacValidationError in interface IMacContainerLocatorexception - MacValidationException to handle.Copyright © 1998–2024 Apryse Group NV. All rights reserved.