at.knowcenter.wag.egov.egiz.sig
Interface LocalConnector

All Superinterfaces:
Connector
All Known Implementing Classes:
A1Connector, BKUConnector

public interface LocalConnector
extends Connector

A local connector is a refinement of a "normal" Connector that allows to explicitely do the request on a local client.

Basically the sign and verify procedures of this connector are split into three groups:

  1. Prepare the request to the local service.
  2. Carry out the request on the local client.
  3. Analyze the response from the local client.

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

Method Summary
 SignatureObject analyzeSignResponse(Properties response_properties, String signature_type)
          Analyzes the sign response string.
 SignatureResponse analyzeVerifyResponse(Properties response_properties)
          Analyzes the verify response string.
 String getSignURL(String profile)
          Returns the sign URL of the local service.
 String getVerifyURL(String profile)
          Returns the verify URL of the local service.
 String prepareSignRequest(String user_name, String sign_text, String signature_type)
          Prepares the sign request string.
 String prepareVerifyRequest(String signed_text, SignatureObject signature_object)
          Prepares the verify request string.
 
Methods inherited from interface at.knowcenter.wag.egov.egiz.sig.Connector
doSign, doVerify
 

Method Detail

prepareSignRequest

String prepareSignRequest(String user_name,
                          String sign_text,
                          String signature_type)
                          throws SignatureException
Prepares the sign request string.

Parameters:
user_name - The user name.
sign_text - The text to be signed.
signature_type - The type of the signature.
Returns:
Returns the request string to be sent to the local service.
Throws:
SignatureException - F.e.

prepareVerifyRequest

String prepareVerifyRequest(String signed_text,
                            SignatureObject signature_object)
                            throws SignatureException
Prepares the verify request string.

Parameters:
signed_text - The signed text to be verified.
signature_object - The SignatureObject.
Returns:
Returns the request string.
Throws:
SignatureException - F.e.

analyzeSignResponse

SignatureObject analyzeSignResponse(Properties response_properties,
                                    String signature_type)
                                    throws SignatureException
Analyzes the sign response string.

Parameters:
signature_type - The type of the signature.
Returns:
Returns the SignatureObject of the sign request.
Throws:
SignatureException - F.e.

analyzeVerifyResponse

SignatureResponse analyzeVerifyResponse(Properties response_properties)
                                        throws SignatureException
Analyzes the verify response string.

Returns:
Returns the SignatureResponse of the verify request.
Throws:
SignatureException - F.e.

getSignURL

String getSignURL(String profile)
Returns the sign URL of the local service.

Parameters:
profile - The signature type the URL should be retrieved from.
Returns:
Returns the sign URL of the local service.

getVerifyURL

String getVerifyURL(String profile)
Returns the verify URL of the local service.

Parameters:
profile - The signature type the URL should be retrieved from.
Returns:
Returns the verify URL of the local service.


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.