/** * */ package at.knowcenter.wag.egov.egiz.sig.connectors; import at.gv.egiz.pdfas.api.xmldsig.XMLDsigData; import at.knowcenter.wag.egov.egiz.exceptions.ConnectorException; import at.knowcenter.wag.egov.egiz.sig.SignatureData; import at.knowcenter.wag.egov.egiz.sig.SignatureResponse; import at.knowcenter.wag.egov.egiz.sig.connectors.bku.SignSignatureObject; /** * @author wprinz * */ public interface Connector { //23.11.2010 changed by exthex - added reconstructXMLDsig(SignatureData data, SignSignatureObject so) /** * Performs a sign. * * @param data * The data to be signed. * @return Returns the signature object containing the signature data. * @throws ConnectorException * Thrown if something goes wrong. */ public SignSignatureObject doSign(SignatureData data) throws ConnectorException; /** * Performs a verification. * * @param data * The data to be verified. * @param so * The signature object with the signature information. * @param dsig * The xmldsig info which will be enveloped in the verify request. * @return Returns the SignatureResponse with the result of the verification. * @throws ConnectorException * Thrown if something goes wrong. */ public SignatureResponse doVerify(SignatureData data, SignSignatureObject so, XMLDsigData dsig) throws ConnectorException; /** * Reconstruct the xmldsig info of the given {@link SignSignatureObject} * * @param data * @param so * @return * @throws ConnectorException */ public XMLDsigData reconstructXMLDsig(SignatureData data, SignSignatureObject so) throws ConnectorException; }