/** * Copyright 2006 by Know-Center, Graz, Austria * PDF-AS has been contracted by the E-Government Innovation Center EGIZ, a * joint initiative of the Federal Chancellery Austria and Graz University of * Technology. * * 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://www.osor.eu/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. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. */ package at.gv.egiz.pdfas.web; import java.util.List; /** * Encapsulates a local operation. * *

* A local operation is a sequence of successive local verifications. *

*

* This is held on the VerifySessionInformation so that the DataURLServlet and RetrieveSignatureDataServlet * can provide their data to the local service easily. *

* * @author wprinz */ public class CurrentLocalOperation { /** * The signature holders to be verified in the current local operation. */ public List signaturesToBeverified; /** * An array of local requests to be processed. */ public LocalRequest[] requests = null; /** * An array of response strings of the local requests. */ public String[] response_xmls = null; /** * The index of the holder/request to be processed. */ public int current_operation = 0; /** * @see at.gv.egiz.pdfas.web.LocalOperation#isFinished() */ public boolean isFinished() { return this.current_operation >= this.requests.length; } /** * @see at.gv.egiz.pdfas.web.LocalOperation#getCurrentLocalRequest() */ public LocalRequest getCurrentLocalRequest() { return this.requests[this.current_operation]; } /** * @see at.gv.egiz.pdfas.web.LocalOperation#finishCurrentOperation(java.util.Properties) */ public void finishCurrentOperation(String xml_response) { this.response_xmls[this.current_operation] = xml_response; this.current_operation++; } }