Generation of XML DSIG signatures
The generation of XML DSIG signatures can basically be done in two different ways:
- Including the signature API request within a SendMsg request
-
Figure 1. Signature processing combined with a SendMsg request 
- 1 The application creates the
ds:Signatureinformation according to the SWIFT specification. - 2 The application creates an MSIF SendMsg request containing the
prepared
ds:Signaturein the <AppHdr> together with the signature API request. - 3 The message is passed to the signature API.
- 4 The signature API uses the SAG to generate the required signature.
- 5 The message containing the generated signature is returned back to the application and can be directly provided to the MSIF service for sending ( 6 ).
- 7 The result is returned back to the application.
- 1 The application creates the
- Generation of the signatures outside of a Sending (InterAct) or SendFile (FileAct) request
-
Figure 2. Signature processing outside a SendMsg request 
- 1 The application creates the
ds:Signatureinformation according to the SWIFT specification. - 2 The application creates a signature API request.
- 3 The request is passed to the signature API.
- 4 The signature API uses the SAG to generate the required signature.
- 5 The generated signature is returned back to the application.
- 6 The application generates a message containing the SendMsg or SendFile request and includes the signature information.
- 7 The message is provided to the MSIF service. The result ( 8 ) is returned back to the application.
- 1 The application creates the