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

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

public class MOASoapWithAttachmentConnector
extends Object
implements Connector

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

Author:
wprinz

Nested Class Summary
static class MOASoapWithAttachmentConnector.Environment
          Holds environment configuration information like templates.
 
Field Summary
static String ATRUST_VERIFY_TEMPLATE_KEY
           
protected  MOASoapWithAttachmentConnector.Environment environment
          The environemnt configuration of this connector containing templates and other configurable elements.
protected static String MULTIPART_LOC_REF_CONTENT
           
protected  ConnectorParameters params
          The connector parameters.
protected static String RETURN_HASH_INPUT_DATA
           
 
Constructor Summary
MOASoapWithAttachmentConnector(ConnectorParameters connectorParameters)
          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)
           
 void reInitVerifyTemplate(String templatePropKey)
           
protected  Properties sendRequest(String url, String mode, String request_string, SignatureData data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATRUST_VERIFY_TEMPLATE_KEY

public static final String ATRUST_VERIFY_TEMPLATE_KEY
See Also:
Constant Field Values

MULTIPART_LOC_REF_CONTENT

protected static final String MULTIPART_LOC_REF_CONTENT
See Also:
Constant Field Values

RETURN_HASH_INPUT_DATA

protected static final String RETURN_HASH_INPUT_DATA
See Also:
Constant Field Values

params

protected ConnectorParameters params
The connector parameters.


environment

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

Constructor Detail

MOASoapWithAttachmentConnector

public MOASoapWithAttachmentConnector(ConnectorParameters connectorParameters)
                               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:
connectorParameters - The parameters for this connector.
Throws:
ConnectorException - f.e.
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,
                                 SignatureData data)
                          throws ConnectorException
Throws:
ConnectorException

reInitVerifyTemplate

public void reInitVerifyTemplate(String templatePropKey)
                          throws ConnectorException
Throws:
ConnectorException


Copyright © 2006-2010. All Rights Reserved.