/**
*
* Basically the sign and verify procedures of this connector are split into * three groups: *
** Usually the preparation and the analyzation are carried out on the server, * whereas the connection to the local service is made from the local client. *
* * @author wprinz */ public interface LocalConnector extends Connector { /** * Prepares the sign request string. * * @param user_name * The user name. * @param sign_text * The text to be signed. * @param signature_type * The type of the signature. * @return Returns the request string to be sent to the local service. * @throws SignatureException * F.e. */ public String prepareSignRequest(String user_name, String sign_text, String signature_type) throws SignatureException; /** * Prepares the verify request string. * * @param signed_text * The signed text to be verified. * @param signature_object * The SignatureObject. * @return Returns the request string. * @throws SignatureException * F.e. */ public String prepareVerifyRequest(String signed_text, SignatureObject signature_object) throws SignatureException; /** * Analyzes the sign response string. * * @param signature_type * The type of the signature. * @return Returns the SignatureObject of the sign request. * @throws SignatureException * F.e. */ // TODO hotfix public SignatureObject analyzeSignResponse(Properties response_properties, String signature_type) throws SignatureException; /** * Analyzes the verify response string. * * @return Returns the SignatureResponse of the verify request. * @throws SignatureException * F.e. */ // TODO hotfix public SignatureResponse analyzeVerifyResponse(Properties response_properties) throws SignatureException; /** * Returns the sign URL of the local service. * * @param profile * The signature type the URL should be retrieved from. * @return Returns the sign URL of the local service. */ public String getSignURL(String profile); /** * Returns the verify URL of the local service. * * @param profile * The signature type the URL should be retrieved from. * @return Returns the verify URL of the local service. */ public String getVerifyURL(String profile); }