public class PdfAsImpl extends Object implements PdfAs, IConfigurationConstants
DEFAULT, DEFAULT_SIGNATURE_PROFILE, FALSE, LEGACY_POSITIONING, MAIN, MOA_SIGN_URL, MOA_SS_KEY_CERTIFICATE, MOA_SS_KEY_IDENTIFIER, MOA_TRUSTPROFILE_ID, MOA_VERIFY_URL, PLACEHOLDER_SEARCH_ENABLED, POS, SEPERATOR, SIG_OBJECT, SIG_OBJECT_PREFIX, TABLE, TRUE, TYPE
Modifier and Type | Method and Description |
---|---|
SignResult |
finishSign(StatusRequest statusRequest)
Finishes a signature process
|
Image |
generateVisibleSignaturePreview(SignParameter parameter,
iaik.x509.X509Certificate cert,
int resolution)
Generates a Image of the visual signatur block as Preview
|
Configuration |
getConfiguration()
Gets a copy of the PDF-AS configuration, to allow the application to
override configuration parameters at runtime.
|
StatusRequest |
process(StatusRequest statusRequest)
Continues an ongoing signature process
|
SignResult |
sign(SignParameter parameter)
Signs a PDF document using PDF-AS.
|
StatusRequest |
startSign(SignParameter parameter)
Starts a signature process
After the process has to be startet the status request has to be services by the user application
|
List<VerifyResult> |
verify(VerifyParameter parameter)
Verifies a document with (potentially multiple) PDF-AS signatures.
|
public PdfAsImpl(File cfgFile)
public SignResult sign(SignParameter parameter) throws at.gv.egiz.pdfas.common.exceptions.PdfAsException
PdfAs
public List<VerifyResult> verify(VerifyParameter parameter) throws at.gv.egiz.pdfas.common.exceptions.PdfAsException
PdfAs
public Configuration getConfiguration()
PdfAs
getConfiguration
in interface PdfAs
public StatusRequest startSign(SignParameter parameter) throws at.gv.egiz.pdfas.common.exceptions.PdfAsException
PdfAs
public StatusRequest process(StatusRequest statusRequest) throws at.gv.egiz.pdfas.common.exceptions.PdfAsException
PdfAs
public SignResult finishSign(StatusRequest statusRequest) throws at.gv.egiz.pdfas.common.exceptions.PdfAsException
PdfAs
finishSign
in interface PdfAs
statusRequest
- The current statusat.gv.egiz.pdfas.common.exceptions.PdfAsException
public Image generateVisibleSignaturePreview(SignParameter parameter, iaik.x509.X509Certificate cert, int resolution) throws at.gv.egiz.pdfas.common.exceptions.PdfAsException
PdfAs
generateVisibleSignaturePreview
in interface PdfAs
parameter
- The signing Parametercert
- The certificate to use to build the signature blockresolution
- the resolution in dpi (dots per inch) (default is 72)at.gv.egiz.pdfas.common.exceptions.PdfAsException