From 6025b6016517c6d898d8957d1d7e03ba71431912 Mon Sep 17 00:00:00 2001 From: tknall Date: Fri, 1 Dec 2006 12:20:24 +0000 Subject: Initial import of release 2.2. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@4 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../wag/egov/egiz/web/SessionInformation.java | 126 +++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 src/main/java/at/knowcenter/wag/egov/egiz/web/SessionInformation.java (limited to 'src/main/java/at/knowcenter/wag/egov/egiz/web/SessionInformation.java') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/SessionInformation.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/SessionInformation.java new file mode 100644 index 0000000..f3c34d3 --- /dev/null +++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/SessionInformation.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2006 by Know-Center, Graz, Austria + * + * This software is the confidential and proprietary information of Know-Center, + * Graz, Austria. You shall not disclose such Confidential Information and shall + * use it only in accordance with the terms of the license agreement you entered + * into with Know-Center. + * + * KNOW-CENTER MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF + * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR + * NON-INFRINGEMENT. KNOW-CENTER SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY + * LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS + * DERIVATIVES. + * + * $Id: SessionInformation.java,v 1.2 2006/08/25 17:06:11 wprinz Exp $ + */ +package at.knowcenter.wag.egov.egiz.web; + +import java.io.Serializable; +import java.util.List; + +import at.knowcenter.wag.egov.egiz.framework.SignResult; +import at.knowcenter.wag.egov.egiz.pdf.IncrementalUpdateInformation; + +/** + * This class is a collection of various session parameters that are passed + * between the servlets and jsps. + * + *

+ * The SessionInformation class contains type safe references to the objects. + *

+ * + * @author wprinz + */ +public class SessionInformation implements Serializable +{ + + /** + * SVUID. + */ + private static final long serialVersionUID = -7413884936584659150L; + + // public long session_id = -1; + + /** + * The connector. + */ + public String connector = null; + + /** + * For local requests, tells the application (sign, verify). + */ + public String application = null; + + /** + * Tells the operation mode (binary, textual). + */ + public String mode = null; + + /** + * The original, uploaded pdf. + */ + public byte[] pdf = null; + + /** + * The type/profile of the signature. + */ + public String type = null; + + /** + * The user name. + */ + public String user_name = null; + + /** + * The password. + */ + public String user_password = null; + + /** + * An array of local requests to be processed. + */ + public LocalRequest[] requests = null; + + /** + * The index of the local request to be processed next. + */ + public int current_operation = 0; + + /** + * An array of response strings of the local requests. + */ + public String[] response_string = null; + + /** + * Tells, if the current local request has been finished. + */ + public boolean finished = false; + + /** + * The incremental update information that has been extracted from the given + * PDF document. + */ + public IncrementalUpdateInformation iui; + + /** + * The signature holders. + */ + public List signature_holders; + + /** + * The suggested filename. + */ + public String filename; + + /** + * Tells, if the file download should be done inline or as attachment. + */ + public boolean download_inline; + + /** + * The sign result to be passed back to the user. + */ + public SignResult sign_result; +} -- cgit v1.2.3