/** * */ package at.knowcenter.wag.egov.egiz.sig.connectors; 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 { /** * 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. * @return Returns the SignatureResponse with the result of the verification. * @throws ConnectorException * Thrown if something goes wrong. */ public SignatureResponse doVerify(SignatureData data, SignSignatureObject so) throws ConnectorException; }