at.gv.egovernment.moa.spss.server.invoke
Class XMLSignatureCreationInvoker

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.invoke.XMLSignatureCreationInvoker

public class XMLSignatureCreationInvoker
extends Object

A class providing an API based interface to the XMLSignatureCreationModule. This class performs the invocation of the iaik.server.modules.xmlsign.XMLSignatureCreationModule from a CreateXMLSignatureRequest given as an API object. The result of the invocation is integrated into a CreateXMLSignatureResponse and returned.

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
protected XMLSignatureCreationInvoker()
          Create a new XMLSignatureCreationInvoker.
 
Method Summary
 at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureResponse createXMLSignature(at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureRequest request, Set reserved)
          Process the CreateXMLSignatureRequest message and invoke the XMLSignatureCreationModule for every SingleSignatureInfo contained in the request.
static XMLSignatureCreationInvoker getInstance()
          Get the only instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSignatureCreationInvoker

protected XMLSignatureCreationInvoker()
Create a new XMLSignatureCreationInvoker. Protected to disallow multiple instances.
Method Detail

getInstance

public static XMLSignatureCreationInvoker getInstance()
Get the only instance of this class.
Returns:
The only instance of this class.

createXMLSignature

public at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureResponse createXMLSignature(at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureRequest request,
                                                                                            Set reserved)
                                                                                     throws MOAException
Process the CreateXMLSignatureRequest message and invoke the XMLSignatureCreationModule for every SingleSignatureInfo contained in the request.
Parameters:
request - A CreateXMLSignatureRequest API object containing the information for creating the signature(s).
reserved - A Set of reserved object IDs.
Returns:
A CreateXMLSignatureResponse API object containing the created signature(s). The response contains either a SignatureEnvironment or a ErrorResponse for each SingleSignatureInfo in the request.
Throws:
MOAException - An error occurred during signature creation.