org.yawlfoundation.yawl.digitalSignature
Class DigitalSignature

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.interfce.interfaceB.InterfaceBWebsideController
      extended by org.yawlfoundation.yawl.digitalSignature.DigitalSignature

public class DigitalSignature
extends InterfaceBWebsideController

The main class of the Digital Signature Service.

Since:
2.0
Author:
Sebastien Vincente

Field Summary
 
Fields inherited from class org.yawlfoundation.yawl.engine.interfce.interfaceB.InterfaceBWebsideController
_ibCache, _interfaceBClient, _logger, _report, engineLogonName, engineLogonPassword, XSD_ANYURI_TYPE, XSD_NAMESPACE, XSD_NCNAME_TYPE, XSD_STRINGTYPE
 
Constructor Summary
DigitalSignature()
           
 
Method Summary
 boolean checkSignature(byte[] Document)
           
static Document ConvertStringToDocument(String Doc)
           
 YParameter[] describeRequiredParams()
          Override this method if you wish to allow other tools to find out what input parameters are required for your custom YAWL service to work.
 X509Certificate getCertificate()
           
 void handleCancelledWorkItemEvent(WorkItemRecord workItemRecord)
          Receives notification from the engine that an active workitem has been cancelled.
 void handleEnabledWorkItemEvent(WorkItemRecord enabledWorkItem)
          Receives notification from the engine of an enabled workitem.
 String PrepareDocumentToBeSign(org.jdom.Element element)
           
 String ProgMain(org.jdom.Element Document)
           
 void setP12AndPassword(String P12, String password, String Certificate)
           
 org.bouncycastle.cms.CMSSignedData SignedData(org.jdom.Element InputDocument)
           
 
Methods inherited from class org.yawlfoundation.yawl.engine.interfce.interfaceB.InterfaceBWebsideController
checkConnection, checkInWorkItem, checkInWorkItem, checkInWorkItem, checkOut, checkOutAllInstancesOfThisTask, connect, destroy, doGet, getAuthenticationConfig, getCachedWorkItem, getChildren, getEngineStoredWorkItem, getIBCache, getModel, getResourcingSpecs, getSpecificationData, getSpecificationData, getSpecificationPrototypesList, getTaskInformation, getTaskInformation, handleCancelledCaseEvent, handleCaseResumedEvent, handleCaseSuspendedEvent, handleCaseSuspendingEvent, handleCompleteCaseEvent, handleEngineInitialisationCompletedEvent, handleStartCaseEvent, handleTimerExpiryEvent, handleWorkItemStatusChangeEvent, logContactError, prepareReplyRootElement, setEngineLogonName, setEngineLogonPassword, setRemoteAuthenticationDetails, setUpInterfaceBClient, successful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalSignature

public DigitalSignature()
Method Detail

handleEnabledWorkItemEvent

public void handleEnabledWorkItemEvent(WorkItemRecord enabledWorkItem)
Description copied from class: InterfaceBWebsideController
Receives notification from the engine of an enabled workitem. Typically, a custom service will implement this method to check out the work item, and process it as appropriate for the service.

Specified by:
handleEnabledWorkItemEvent in class InterfaceBWebsideController
Parameters:
enabledWorkItem - the enabled work item

describeRequiredParams

public YParameter[] describeRequiredParams()
Description copied from class: InterfaceBWebsideController
Override this method if you wish to allow other tools to find out what input parameters are required for your custom YAWL service to work.

Overrides:
describeRequiredParams in class InterfaceBWebsideController
Returns:
an array of input parameters.

handleCancelledWorkItemEvent

public void handleCancelledWorkItemEvent(WorkItemRecord workItemRecord)
Description copied from class: InterfaceBWebsideController
Receives notification from the engine that an active workitem has been cancelled. A custom service will implement this method to take any cleanup action on a previously checked out workitem.

Specified by:
handleCancelledWorkItemEvent in class InterfaceBWebsideController
Parameters:
workItemRecord - the cancelled work item

checkSignature

public boolean checkSignature(byte[] Document)

ConvertStringToDocument

public static Document ConvertStringToDocument(String Doc)

getCertificate

public X509Certificate getCertificate()

PrepareDocumentToBeSign

public String PrepareDocumentToBeSign(org.jdom.Element element)

SignedData

public org.bouncycastle.cms.CMSSignedData SignedData(org.jdom.Element InputDocument)

setP12AndPassword

public void setP12AndPassword(String P12,
                              String password,
                              String Certificate)

ProgMain

public String ProgMain(org.jdom.Element Document)


Copyright © 2004-2012 The YAWL Foundation.