at.knowcenter.wag.egov.egiz.sig.connectors.moa
Class DetachedLocRefMOAConnector

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.sig.connectors.moa.DetachedLocRefMOAConnector
All Implemented Interfaces:
Connector

public class DetachedLocRefMOAConnector
extends Object
implements Connector

Connects to MOA providing the Data detached as LocRef on a local resource.

Author:
wprinz

Nested Class Summary
static class DetachedLocRefMOAConnector.Environment
          Holds environment configuration information like templates.
 
Field Summary
protected  DetachedLocRefMOAConnector.Environment environment
          The environemnt configuration of this connector containing templates and other configurable elements.
 
Constructor Summary
DetachedLocRefMOAConnector(String profile, String signature_data_url)
          Constructor that builds the configuration environment for this connector according to the given profile.
 
Method Summary
 SignSignatureObject analyzeSignResponse(Properties response_properties)
           
 SignatureResponse analyzeVerifyResponse(Properties response_properties)
          Analyzes the verify response string.
 SignSignatureObject doSign(SignatureData data)
          Performs a sign.
 SignatureResponse doVerify(SignatureData data, SignSignatureObject so)
          Performs a verification.
protected  String prepareSignRequest(SignatureData data)
           
 String prepareVerifyRequest(SignatureData data, SignSignatureObject so)
          Prepares the verify request xml to be sent using the verify request template.
 String prepareXMLContent(SignatureData data, SignSignatureObject so)
           
protected  Properties sendRequest(String url, String mode, String request_string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

environment

protected DetachedLocRefMOAConnector.Environment environment
The environemnt configuration of this connector containing templates and other configurable elements.

Constructor Detail

DetachedLocRefMOAConnector

public DetachedLocRefMOAConnector(String profile,
                                  String signature_data_url)
                           throws ConnectorException
Constructor that builds the configuration environment for this connector according to the given profile.

If confuguration parameters are not defined on that profile, the default parameters defined in the configuration are used.

Parameters:
profile - The profile from which the Environment should be assembled.
Throws:
SettingsException - f.e.
SignatureException - f.e.
ConnectorException
Method Detail

prepareSignRequest

protected String prepareSignRequest(SignatureData data)
                             throws ConnectorException
Throws:
ConnectorException

analyzeSignResponse

public SignSignatureObject analyzeSignResponse(Properties response_properties)
                                        throws ConnectorException
Throws:
ConnectorException
See Also:
LocalConnector.analyzeSignResponse(java.util.Properties)

doSign

public SignSignatureObject doSign(SignatureData data)
                           throws ConnectorException
Description copied from interface: Connector
Performs a sign.

Specified by:
doSign in interface Connector
Parameters:
data - The data to be signed.
Returns:
Returns the signature object containing the signature data.
Throws:
ConnectorException - Thrown if something goes wrong.
See Also:
Connector.doSign(at.knowcenter.wag.egov.egiz.sig.SignatureData)

doVerify

public SignatureResponse doVerify(SignatureData data,
                                  SignSignatureObject so)
                           throws ConnectorException
Description copied from interface: Connector
Performs a verification.

Specified by:
doVerify in interface Connector
Parameters:
data - The data to be verified.
so - The signature object with the signature information.
Returns:
Returns the SignatureResponse with the result of the verification.
Throws:
ConnectorException - Thrown if something goes wrong.
See Also:
Connector.doVerify(at.knowcenter.wag.egov.egiz.sig.SignatureData, at.knowcenter.wag.egov.egiz.sig.connectors.bku.SignSignatureObject)

prepareVerifyRequest

public String prepareVerifyRequest(SignatureData data,
                                   SignSignatureObject so)
                            throws ConnectorException
Prepares the verify request xml to be sent using the verify request template.

Parameters:
data - The SignatureData.
so - The signature information object.
Returns:
Returns the verify request xml to be sent.
Throws:
ConnectorException - f.e.

analyzeVerifyResponse

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

Parameters:
response_properties - The response properties containing the response XML.
Returns:
Returns the SignatureResponse containing the verification result.
Throws:
ConnectorException - f.e.

prepareXMLContent

public String prepareXMLContent(SignatureData data,
                                SignSignatureObject so)
                         throws ConnectorException
Throws:
ConnectorException

sendRequest

protected Properties sendRequest(String url,
                                 String mode,
                                 String request_string)
                          throws ConnectorException
Throws:
ConnectorException


Copyright © 2006-2010. All Rights Reserved.