/**
* 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.
*
* $Id: SessionInformation.java,v 1.2 2006/08/25 17:06:11 wprinz Exp $
*/
package at.gv.egiz.pdfas.web.session;
import java.io.Serializable;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import at.gv.egiz.pdfas.api.analyze.AnalyzeResult;
import at.gv.egiz.pdfas.api.io.DataSource;
import at.gv.egiz.pdfas.api.verify.VerifyResults;
import at.gv.egiz.pdfas.web.CurrentLocalOperation;
import at.gv.egiz.pdfas.web.ExternAppInformation;
/**
* 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 VerifySessionInformation implements HttpSessionBindingListener, Serializable
{
/**
* SVUID.
*/
private static final long serialVersionUID = -7413884936584659150L;
/**
* The log.
*/
private static Log log = LogFactory.getLog(VerifySessionInformation.class);
/**
* 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 DataSource inputDataSource = null;
/**
* The type/profile of the signature.
*/
public String type = null;
/**
* Keeps track of the currently running local operation.
*
*
* Only valid during local verify.
*
*/
public CurrentLocalOperation currentLocalOperation = null;
/**
* Object containing information about the calling webapplication.
* @author: Thomas Zefferer
*/
public ExternAppInformation exappinf;
/**
* The result of the analyze call.
*/
public AnalyzeResult analyzeResult;
/**
* Results of the verify process.
*/
public VerifyResults verifyResults;
/**
* @see javax.servlet.http.HttpSessionBindingListener#valueBound(javax.servlet.http.HttpSessionBindingEvent)
*/
public void valueBound(HttpSessionBindingEvent event)
{
log.debug("Bound SignSessionInformation to session.");
}
/**
* @see javax.servlet.http.HttpSessionBindingListener#valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
*/
public void valueUnbound(HttpSessionBindingEvent event)
{
log.debug("Unbound SignSessionInformation from session.");
}
}