From 4e14449c2d0097e421bedc5f01647c8b09f1c49c Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 2 Oct 2013 11:29:09 +0200 Subject: Initial legacy API checkin --- .../java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java (limited to 'pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java') diff --git a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java new file mode 100644 index 00000000..6606ec4a --- /dev/null +++ b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java @@ -0,0 +1,138 @@ +package at.gv.egiz.pdfas.wrapper; + +import java.io.File; +import java.util.List; + +import com.sun.org.apache.xml.internal.utils.UnImplNode; + +import at.gv.egiz.pdfas.api.PdfAs; +import at.gv.egiz.pdfas.api.analyze.AnalyzeParameters; +import at.gv.egiz.pdfas.api.analyze.AnalyzeResult; +import at.gv.egiz.pdfas.api.commons.DynamicSignatureLifetimeEnum; +import at.gv.egiz.pdfas.api.commons.DynamicSignatureProfile; +import at.gv.egiz.pdfas.api.exceptions.ErrorCode; +import at.gv.egiz.pdfas.api.exceptions.PdfAsException; +import at.gv.egiz.pdfas.api.sign.SignParameters; +import at.gv.egiz.pdfas.api.sign.SignResult; +import at.gv.egiz.pdfas.api.sign.SignatureDetailInformation; +import at.gv.egiz.pdfas.api.verify.VerifyAfterAnalysisParameters; +import at.gv.egiz.pdfas.api.verify.VerifyAfterReconstructXMLDsigParameters; +import at.gv.egiz.pdfas.api.verify.VerifyParameters; +import at.gv.egiz.pdfas.api.verify.VerifyResults; +import at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigAfterAnalysisParameters; +import at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigParameters; +import at.gv.egiz.pdfas.api.xmldsig.ReconstructXMLDsigResult; + +public class PdfAsObject implements PdfAs { + + public SignResult sign(SignParameters signParameters) throws PdfAsException { + // TODO Auto-generated method stub + return null; + } + + public SignResult sign(SignParameters signParameters, + SignatureDetailInformation signatureDetailInformation) + throws PdfAsException { + // TODO Auto-generated method stub + return null; + } + + public VerifyResults verify(VerifyParameters verifyParameters) + throws PdfAsException { + // TODO Auto-generated method stub + return null; + } + + public AnalyzeResult analyze(AnalyzeParameters analyzeParameters) + throws PdfAsException { + throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE, + new RuntimeException()); + } + + public ReconstructXMLDsigResult reconstructXMLDSIG( + ReconstructXMLDsigParameters reconstructXMLDsigParameters) + throws PdfAsException { + throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE, + new RuntimeException()); + } + + public ReconstructXMLDsigResult reconstructXMLDSIG( + ReconstructXMLDsigAfterAnalysisParameters reconstructXMLDsigParameters) + throws PdfAsException { + throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE, + new RuntimeException()); + } + + public VerifyResults verify( + VerifyAfterAnalysisParameters verifyAfterAnalysisParameters) + throws PdfAsException { + throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE, + new RuntimeException()); + } + + public VerifyResults verify( + VerifyAfterReconstructXMLDsigParameters verifyAfterReconstructXMLDsigParameters) + throws PdfAsException { + throw new PdfAsException(ErrorCode.FUNCTION_NOT_AVAILABLE, + new RuntimeException()); + } + + public void reloadConfig() throws PdfAsException { + // TODO Auto-generated method stub + + } + + public List getProfileInformation() throws PdfAsException { + // TODO Auto-generated method stub + return null; + } + + public DynamicSignatureProfile createDynamicSignatureProfile( + String parentProfile, DynamicSignatureLifetimeEnum mode) { + // TODO Auto-generated method stub + return null; + } + + public DynamicSignatureProfile createDynamicSignatureProfile( + String myUniqueName, String parentProfile, + DynamicSignatureLifetimeEnum mode) { + // TODO Auto-generated method stub + return null; + } + + public DynamicSignatureProfile createEmptyDynamicSignatureProfile( + DynamicSignatureLifetimeEnum mode) { + // TODO Auto-generated method stub + return null; + } + + public DynamicSignatureProfile createEmptyDynamicSignatureProfile( + String myUniqueName, DynamicSignatureLifetimeEnum mode) { + // TODO Auto-generated method stub + return null; + } + + public DynamicSignatureProfile loadDynamicSignatureProfile( + String profileName) { + // TODO Auto-generated method stub + return null; + } + + public SignatureDetailInformation prepareSign(SignParameters signParameters) + throws PdfAsException { + // TODO Auto-generated method stub + return null; + } + + public SignResult finishSign(SignParameters signParameters, + SignatureDetailInformation signatureDetailInformation) + throws PdfAsException { + // TODO Auto-generated method stub + return null; + } + + public PdfAsObject(File workdirectory) { + //TODO + } + +} -- cgit v1.2.3