/** * 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: Connector.java,v 1.3 2006/10/11 07:54:03 wprinz Exp $ */ package at.knowcenter.wag.egov.egiz.sig; import at.knowcenter.wag.egov.egiz.exceptions.SignatureException; /** * The basic interface for all connectors. * * @author wprinz */ public interface Connector { /** * Performs a sign. * * @param sig_type * The signature type/profile. * @param user_name * The user name for user logging. * @param text_to_sign * The text to be signed. * @return Returns the signed SignatureObject. * @throws SignatureException * F.e. */ public SignatureObject doSign(String sig_type, String user_name, String text_to_sign) throws SignatureException; /** * Performs a verify. * * @param signed_text * The signed text to be verified. * @param sig_obj * The Signature object. * @return Returns the SignatureResponse. * @throws SignatureException * F.e. */ public SignatureResponse doVerify(String signed_text, SignatureObject sig_obj) throws SignatureException; }