From db574d4297913a9acae96330c1a0269c2bc92bff Mon Sep 17 00:00:00 2001 From: tkellner Date: Tue, 7 Aug 2012 14:52:01 +0000 Subject: Added class templates Old class files edited to match templates Fixed missing comments git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12277 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../pdfover/signer/pdfas/PDFASSigningState.java | 63 ++++++++++++++++++++-- 1 file changed, 59 insertions(+), 4 deletions(-) (limited to 'trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java') diff --git a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java index 8b8216c6..1d52a27f 100644 --- a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java +++ b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java @@ -1,5 +1,23 @@ +/* + * Copyright 2012 by A-SIT, Secure Information Technology Center Austria + * + * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by + * the European Commission - subsequent versions of the EUPL (the "Licence"); + * You may not use this work except in compliance with the Licence. + * You may obtain a copy of the Licence at: + * http://joinup.ec.europa.eu/software/page/eupl + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the Licence is distributed on an "AS IS" basis, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the Licence for the specific language governing permissions and + * limitations under the Licence. + */ package at.asit.pdfover.signer.pdfas; +//Imports +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import at.asit.pdfover.signator.SLRequest; import at.asit.pdfover.signator.SLResponse; import at.asit.pdfover.signator.SigningState; @@ -7,10 +25,14 @@ import at.gv.egiz.pdfas.api.sign.SignatureDetailInformation; /** * Signing State for PDFAS Wrapper - * @author afitzek */ public class PDFASSigningState implements SigningState { + /** + * SFL4J Logger instance + **/ + private static final Logger log = LoggerFactory.getLogger(PDFASSigningState.class); + /** * The Signature Layer request */ @@ -52,34 +74,67 @@ public class PDFASSigningState implements SigningState { // PDF AS Specific stuff // ---------------------------------------- + /** + * signature detail information + */ protected SignatureDetailInformation signatureDetailInformation; + /** + * PDF - AS sign parameters + */ protected at.gv.egiz.pdfas.api.sign.SignParameters signParameters; + /** + * Signature parameters + */ protected PdfAsSignatureParameter pdfAsSignatureParameter; + /** + * Gets PDF - AS Signature Parameters + * @return PdfAsSignatureParameter + */ public PdfAsSignatureParameter getPdfAsSignatureParameter() { - return pdfAsSignatureParameter; + return this.pdfAsSignatureParameter; } + /** + * Sets PDF - AS Signature Parameters + * @param pdfAsSignatureParameter + */ public void setPdfAsSignatureParameter( PdfAsSignatureParameter pdfAsSignatureParameter) { this.pdfAsSignatureParameter = pdfAsSignatureParameter; } + /** + * Get Sign Parameters + * @return SignParameters + */ public at.gv.egiz.pdfas.api.sign.SignParameters getSignParameters() { - return signParameters; + return this.signParameters; } + /** + * Sets sign Parameter + * @param signParameters + */ public void setSignParameters( at.gv.egiz.pdfas.api.sign.SignParameters signParameters) { this.signParameters = signParameters; } + /** + * Gets the signature detail information + * @return SignatureDetailInformation + */ public SignatureDetailInformation getSignatureDetailInformation() { - return signatureDetailInformation; + return this.signatureDetailInformation; } + /** + * Sets the SignatureDetailInformation + * @param signatureDetailInformation + */ public void setSignatureDetailInformation( SignatureDetailInformation signatureDetailInformation) { this.signatureDetailInformation = signatureDetailInformation; -- cgit v1.2.3