AS2 Connector 6.9 Reference | MuleSoft Documentation
# AS2 Connector 6.9 Reference
Anypoint Connector for AS2 (AS2 Connector) enables trading partners to transmit and receive AS2 messages that contain EDI-X12, EDIFACT, XML, or binary payloads.
## Configurations
### Listener Config
#### General Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
The name for this configuration. Connectors reference the configuration with this name.  
**Connection** |  Async Mdn Connection |  The connection types for this configuration.  
**HTTP Listener** |  Reference to global HTTP Listener definition for our service endpoint used by partner for both action and signal messages.  
**Security Requirement Level** |  Enumeration, one of:
  * SIGNED
  * ENCRYPTED
  * SIGNED_ENCRYPTED

|  The security level required for any AS2 Listener using this configuration for all incoming messages. An error MDN response results if the security requirement is not met.  
**Keystore Password** |  The password of the provided keystore.  
**Keystore Path** |  The Absolute or relative path to the keystore containing certificates and private keys for self (this application) and the partner.  
**Private Key Password** |  Private key password, if the private key to use for signing the MDN is password protected.  
**Validate certificate expiration date** |  If enabled, the connector can’t receive or send messages if the certificate is expired.  
**Warning before (days)** |  The number of days before the certificate expiration date when the connector sends a warning message that the certificate is about to expire. For example, if the value of this field is `3`, then the connector sends a warning message three days before the certificate expiration date. This field applies only when the value of this field is greater than `0` and the **Validate certificate expiration date** field is enabled.  
#### Partners Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Inbound Request Authentication** |  AS2 Basic Authentication |  Authentication method to use for verifying the incoming HTTP request when using dedicated mode. Do not select this field if you are using shared mode or you will receive an error.  
**Self config - AS2 Partner Name** |  AS2 system identifier used for AS2-From and AS2-To headers.  
**Self config - x509 Alias** |  Certificate, private key alias, or both in the keystore. Required if using signing or encryption.  
**Self config - email** |  Email address used as the HTTP `From` header when sending AS2 messages.  
**Use different Alias for MDN Signature** |  (Applies to the **AS2 Listener** source) Use the alias specified in **Alias For MDN Signature** to use a different keystore entry for the MDN signature.  
**Alias For MDN Signature** |  (Applies to the **AS2 Listener** source) Alias to use for the MDN signature if using a different alias for the MDN signature than for decryption. This field takes effect when **Use different Alias for MDN Signature** is `true`.  
**Private Key Password** |  Private key password, if the private key to use for signing the MDN is password protected.  
**Self config - Listener Mode** |  Enumeration, one of:
  * Dedicated mode
  * Shared mode

| 
  * Dedicated mode Enables you to configure a single AS2 listener endpoint to receive messages from one partner only. If you select **Dedicated mode** , check **Partner config** (mandatory) and configure the partner using the Dedicated mode fields in this table.
  * Shared Mode Enables you to configure a single AS2 listener endpoint to receive messages from multiple partners. If you select **Shared mode** , uncheck **Partner config** (mandatory) and configure each partner using the Shared mode fields in this table.

|  Dedicated mode  
**Dedicated mode - Partner Config - AS2 Partner Name** |  AS2 system identifier used for AS2-From and AS2-To headers.  
**Dedicated mode - Partner Config - x509 Alias** |  Certificate, private key alias, or both in the keystore. Required if using signing or encryption.  
**Dedicated mode - Partner Config - email** |  Email address used as the HTTP `From` header when sending AS2 messages.  
**Shared mode - Partners** |  Enumeration, one of:
  * Expression
  * Inline

|  Indicates whether to add partner information by using an expression or by entering values inline.  
**Shared mode - Partners - AS2 Partner Name** |  AS2 system identifier used for AS2-From and AS2-To headers.  
**Shared mode - Partners - x509 Alias** |  Certificate, private key alias, or both in the keystore. Required if using signing or encryption.  
**Shared mode - Partners - email** |  Email address used as the HTTP `From` header when sending an AS2 message.  
**Shared mode - Inbound Request Authentication** |  AS2 Basic Authentication |  Authentication method to use for verifying the incoming HTTP request.  
#### Advanced Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Check for duplicate messages** |  Checks for duplicate messages:
  * If selected, the connector checks to see if a new received message is duplicated, as determined by comparing the following values in the new message to those in existing messages:
    * Sender (from the AS2-From field)
    * Receiver (from the AS2-To field)
    * Message ID (from the Message-Id field)
If all three values match an existing message, the connector rejects the duplicate message. If selected, you must:
    * Reference a global object store in the **Object Store** field. This object store will store the existing messages.
    * Add the object store dependency to your project by adding the **ObjectStore** component to the Studio canvas or adding it to the `pom.xml`, as follows: ```
<dependency>
 <groupId>org.mule.connectors</groupId>
 <artifactId>mule-objectstore-connector</artifactId>
 <version>_latest-version_</version>
 <classifier>mule-plugin</classifier>
</dependency>
```
For the latest object store version, see the Object Store Connector Release Notes. If the MDN mode is `AUTO`, use the Idempotent Message Validator instead of the **Check for duplicate messages** field to check for duplicate messages. If the MDN mode is `IMMEDIATE`, the validator does not work. Therefore, in this circumstance, you must use the **Check for duplicate messages** field to check for duplicate messages. For more information, see Idempotent Message Validator. 
    * If deselected, the connector accepts duplicate messages.

  
**Object Store** |  Object Store |  Object store where the connector stores new messages. This field is mandatory if the **Check for duplicate messages** field is selected. For information about setting field values for this object store, see the Object Store Connector Reference. You might experience limitations that are specific to the object store implementation you are using (Anypoint Object Store V2 (OSv2), CloudHub Object Store V1 (OSv1), or Mule Object Store), so configure the object store to suit your needs. For more information, see The Different Types of Object Stores Explained.  
**Expiration policy** |  Expiration Policy |  Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the platform expires the instance at the exact moment that it becomes eligible. Mule purges the instances as appropriate.  
#### Connection Types
##### Async MDN Connection Provider
###### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Use Persistent Connections** |  If false, each connection is closed after the first request completes.  
**Connection Timeout** |  How long the connector waits before timing out when establishing a connection to the remote service. This value is qualified by the **Connection Timeout Units** field.  
**Connection Timeout Units** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A time unit that qualifies the value of the **Connection Timeout** field.  
**Max Connections** |  The maximum number of outbound connections to keep open at the same time. By default, the number of connections is unlimited.  
**Connection Idle Timeout** |  A timeout for how long a connection can remain idle before it is closed. The value of this attribute is only used when persistent connections are enabled. This value is qualified by the **Connection Idle Timeout Units** field.  
**Connection Idle Timeout Units** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS
|  A time unit that qualifies the value of the **Connection Timeout** field.  
**Max Connections** |  The maximum number of outbound connections to keep open at the same time. By default, the number of connections is unlimited.  
**Connection Idle Timeout** |  A timeout for how long a connection can remain idle before it is closed. The value of this attribute is only used when persistent connections are enabled. This value is qualified by the **Connection Idle Timeout Units** field.  
**Connection Idle Timeout Units** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A time unit that qualifies the value of the **Connection Idle Timeout** field.  
**Retry Interval** |  The interval between each retry, in seconds.  
**Retry Count** |  The number of retries. A value of `0` means no retries.)  
**Proxy Config** |  One of:
  * 
|  Reusable configuration element for outbound connections through a proxy. A proxy element must define a host name and a port attributes, and optionally can define a username and password.  
**TLS Configuration** |  Reference to a TLS config element. This enables HTTPS for this configuration.  
**Reconnection** |  |  When the application is deployed, a connectivity test is performed on all connectors. If set to true, the deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.  
#### Associated Sources
  * 

### MDN Listener Config
#### General Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
The name for this configuration. Connectors reference the configuration with this name.  
**HTTP Listener** |  Reference to global HTTP Listener definition for our service endpoint used by a partner for both action and signal messages.  
**Keystore Password** |  The password of the provided keystore.  
**Keystore Path** |  The Absolute or relative path to the keystore containing certificates and private keys for self(this application) and the partner.  
**Private Key Password** |  Private key password, if the private key to use for signing the MDN is password protected.  
**Validate certificate expiration date** |  If enabled, the connector can’t receive or send messages if the certificate is expired.  
**Warning before (days)** |  The number of days before the certificate expiration date when the connector sends a warning message that the certificate is about to expire. For example, if the value of this field is `3`, then the connector sends a warning message three days before the certificate expiration date. This field applies only when the value of this field is greater than `0` and the **Validate certificate expiration date** field is enabled.  
#### Advanced Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Expiration policy** |  Expiration Policy |  Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the platform expires the instance at the exact moment that it becomes eligible. Mule purges the instances as appropriate.  
#### Partners Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Self config - AS2 Partner Name** |  AS2 system identifier used for AS2-From and AS2-To headers.  
**Self config - x509 Alias** |  Certificate, private key alias, or both in the keystore. Required if using signing or encryption.  
**Self config - email** |  Email address used as the HTTP `From` header when sending 12 messages.  
**MDN Listener Mode** |  Enumeration, one of:
  * Mdn dedicated mode
  * Mdn shared mode

| 
  * Mdn dedicated mode Enables you to configure a single AS2 listener endpoint to receive MDNs from one partner only. If you select **Mdn dedicated mode** , check **Partner config** (mandatory) and configure the partner using the Mdn dedicated mode fields in this table.
  * Mdn shared mode Enables you to configure a single AS2 listener endpoint to receive MDNs from multiple partners. If you select **Mdn shared mode** , uncheck **Partner config** (mandatory) and configure each partner using the Mdn shared mode fields in this table.

  
**Mdn dedicated mode - Partner Config - AS2 Partner Name** |  AS2 system identifier used for AS2-From and AS2-To headers.  
**Mdn dedicated mode - Partner Config - x509 Alias** |  Certificate, private key alias, or both in the keystore. Required if using signing or encryption. |  Dedicated mode  
**Mdn dedicated mode - Partner Config - email** |  Email address used as the HTTP `From` header when sending MDNs.  
**Mdn shared mode - Partners - AS2 Partner Name** |  AS2 system identifier used for AS2-From and AS2-To headers.  
**Mdn shared mode - Partners - x509 Alias** |  Certificate, private key alias, or both in the keystore. Required if using signing or encryption.  
**Mdn shared mode - Partners - email** |  Email address used as the HTTP `From` header when sending MDNs.  
#### Associated Sources
  * As2 Mdn Listener


### Send Config
This class represents an extension configuration, values set in this class are commonly used across multiple operations since they represent something core from the extension.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
The name for this configuration. Connectors reference the configuration with this name.  
**Connection** |  Outbound Connection Config |  The connection types for this configuration.  
**Expiration Policy** |  Expiration Policy |  Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the platform expires the instance at the exact moment that it becomes eligible. Mule purges the instances as appropriate.  
**General - Transfer Mode Configuration** |  Enumeration, one of:
  * Chunked transfer mode
  * Identity transfer mode
  * Threshold transfer mode

|  The transfer mode applied when sending information:
  * Chunked transfer mode Sends the headers without the Content-Length property and modifies the message body to transfer it as a series of chunks.
  * Identity transfer mode Sends the headers with the Content-Length property and sends the whole message body.
  * Threshold transfer mode Sends the headers and message body according to the specified threshold.
    * If the message body is less than or equal to the threshold, the connector uses the Identity transfer mode option.
    * If the message body is greater than the threshold, the connector uses the Chunked transfer mode option.

|  Chunked transfer mode  
Threshold used when the General - Transfer Mode Configuration field is set to `Threshold transfer mode`.  
**Threshold Unit** |  Enumeration, one of: |  Unit associated with the Threshold field.  
**General - Propagate Content Transfer Encoding** |  Indicates whether to propagate the content transfer encoding on the AS2 message sent to the partner:
  * True: The main content transfer encoding is propagated to every MIME part of the resulting message.
  * False: Signed and encrypted MIME parts are encoded with Base64.

  
**General - Custom Message ID** |  Enables the specification of a custom AS2 Message ID  
**Partner Config - AS2 Partner Name** |  AS2 system identifier (used for AS2-From and AS2-To headers)  
**Partner Config - x509 Alias** |  Certificate, private key alias, or both in the keystore (required if using signing or encryption)  
**Partner Config - email** |  Email address used as HTTP `From` header when sending  
**MDN Partner Config - Use different Alias for MDN Signature** |  (Applies to the **Send with Sync Mdn** operation) Use the alias specified in **Alias For MDN Signature** as the alias for MDN signature validation.  
**MDN Partner Config - Alias For MDN Signature** |  (Applies to the **Send with Sync Mdn** operation) Alias to use for MDN signature validation if using a different alias for MDN signature validation than for encryption. This field takes effect when **Use different Alias for MDN Signature** is `true`.  
**Self config - AS2 Partner Name** |  AS2 system identifier (used for AS2-From and AS2-To headers)  
**Self config - x509 Alias** |  Certificate, private key alias or both in keystore (required if using signing or encryption)  
**Self config - email** |  Email address used as HTTP `From` header when sending  
Free form text for MIME Subject header  
**MIC Signature Algorithm** |  Enumeration, one of:
  * SHA224
  * SHA256
  * SHA384
  * SHA512
  * UNSIGNED

|  Algorithm to use when setting the message integrity check value.  
**MDN MIC Signature Algorithm** |  Enumeration, one of:
  * SHA224
  * SHA256
  * SHA384
  * SHA512
  * UNSIGNED
|  Algorithm to use when setting the message integrity check value.  
**MDN MIC Signature Algorithm** |  Enumeration, one of:
  * SHA224
  * SHA256
  * SHA384
  * SHA512
  * UNSIGNED

|  Request partner to respond with a signed MDN using this algorithm for calculating MIC  
**Encryption Algorithm** |  Enumeration, one of:
  * DES_EDE3
  * AES128_CBC
  * AES192_CBC
  * AES256_CBC
  * AES128_CCM
  * AES192_CCM
  * AES256_CCM
  * AES128_GCM
  * AES192_GCM
  * AES256_GCM
  * AES256_WRAP
  * CAST5
  * UNENCRYPTED

|  The Algorithm to use when encrypting the message to be sent |  UNENCRYPTED  
**Content Transfer Encoding** |  Enumeration, one of:
  * BASE64
  * QUOTED_PRINTABLE
  * SEVEN_BIT
  * EIGHT_BIT
  * BINARY

|  The encoding to use on the content of AS2 message being sent.  
**Request A Receipt** |  Enumeration, one of:
  * UNSIGNED
  * SIGNED_OPTIONAL
  * SIGNED_REQUIRED

|  How the connector behaves based on the received receipts.  
**Compression Type** |  Enumeration, one of: |  The Compression type to use  
**Receipt Delivery URL** |  The asynchronous MDN delivery address to which the MDN is returned. This should be the fully formed URL to the **As 2 mdn listener** source, for example, `https://example.com/mdn`. If a flow uses the **Send With Async MDN** operation, then either this field or the **Receipt Delivery URL** field associated with that operation is required. If both fields have values, the value for the operation overrides the value for the global configuration.  
**Keystore Password** |  The password of the provided keystore.  
**Keystore Path** |  The Absolute or relative path to the keystore containing certificates and private keys for self(this application) and the partner.  
**Private Key Password** |  Private key password, if the private key to use for signing the MDN is password protected.  
**Validate certificate expiration date** |  If enabled, the connector can’t receive or send messages if the certificate is expired.  
**Warning before (days)** |  The number of days before the certificate expiration date when the connector sends a warning message that the certificate is about to expire. For example, if the value of this field is `3`, then the connector sends a warning message three days before the certificate expiration date. This field applies only when the value of this field is greater than `0` and the **Validate certificate expiration date** field is enabled.  
#### Connection Types
##### Outbound Connection Config
###### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Use Persistent Connections** |  If false, each connection is closed after the first request completes.  
**Connection Timeout** |  How long the connector waits before timing out when establishing a connection to the remote service. This value is qualified by the **Connection Timeout Units** field.  
**Connection Timeout Units** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A time unit that qualifies the value of the **Connection Timeout** field.  
**Max Connections** |  The maximum number of outbound connections to keep open at the same time. By default the number of connections is unlimited.  
**Connection Idle Timeout** |  A timeout for how long a connection can remain idle before it is closed. The value of this attribute is only used when persistent connections are enabled. This value is qualified by the value of the **Connection Idle Timeout Units** field.  
**Connection Idle Timeout Units** |  Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A time unit that qualifies the value of the **Connection Idle Timeout** field.  
**Proxy Config** |  One of:
  * 
|  Reusable configuration element for outbound connections through a proxy. A proxy element must define a host name and a port attributes, and optionally can define a username and a password.  
**Partner URL** |  Service endpoint URL to the partner.  
**Outbound Request Authentication** |  HttpRequestAuthentication |  Authentication method to use for the HTTP request.  
**TLS Configuration** |  Reference to a TLS config element. This enables HTTPS for this configuration.  
**Reconnection** |  |  When the application is deployed, a connectivity test is performed on all connectors. If set to true, the deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.  
## Sources
  *   * As2 Mdn Listener
  * Non repudiation listener


### As2 Listener
`<as2-mule4:as2-listener>`
Represents a listener for AS2 sender requests.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
This path is appended to any path set in the listener configuration.  
**Connection Timeout** |  An override for the timeout for establishing connections to the remote service as milliseconds. The default of 0 means this value is not used to override the configuration.  
**Non repudiation flow ref** |  The name of the configured flow that contains the **Non repudiation listener** source.  
Enumeration, one of:
  * IMMEDIATE

|  MDN deliver mode:
  * AUTO: Sends an MDN at the end of the flow.
  * IMMEDIATE: Sends an MDN when the source receives a message.

  
**Output Mime Type** |  The MIME type of the payload that this operation outputs.  
**Output Encoding** |  The encoding of the payload that this operation outputs.  
**Primary Node Only** |  Whether to execute this source on only the primary node when running in a cluster.  
**Streaming Strategy** | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

|  Configures how Mule processes streams. The default is to use repeatable streams.  
**Redelivery Policy** |  Redelivery Policy |  Defines a policy for processing the redelivery of the same message.  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  Configures a reconnection strategy to use when a connector operation fails to connect to an external server.  
#### Output
Attributes Type |  AS2 Listener Attributes  
---|---  
#### For Configurations
  * Listener Config


### As2 Mdn Listener
`<as2-mule4:as2-mdn-listener>`
Listens for AS2 requests and automatically sends an MDN back to the receipt URL provided in the transmission when a request is received.
```
If the receipt URL is inaccessible, the inbound AS2 message is not processed.
```
  
---  
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
This path is appended to any path set in the listener configuration.  
**Non repudiation flow ref** |  The name of the configured flow that contains the **Non repudiation listener** source.  
**Output Mime Type** |  The MIME type of the payload that this operation outputs.  
**Output Encoding** |  The encoding of the payload that this operation outputs.  
**Primary Node Only** |  Whether to execute this source on only the primary node when running in a cluster.  
**Streaming Strategy** | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

|  Configures how Mule processes streams. The default is to use repeatable streams.  
**Redelivery Policy** |  Redelivery Policy |  Defines a policy for processing the redelivery of the same message.  
#### Output
Attributes Type |  AS2 Mdn Attributes  
---|---  
#### For Configurations
  * MDN Listener Config


### Non repudiation listener
`<as2-mule4:non-repudiation-listener>`
Receives a signed copy of a receipt or a message for persistent non-repudiation storage.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Display Name** |  The name of this configuration. Connectors reference the configuration with this name.  
The MIME type of the payload passed to this flow.  
The encoding of the payload passed to this flow.  
**Redelivery Policy** |  Redelivery Policy |  Defines a policy for processing the redelivery of the same message.  
**Streaming Strategy** | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * Non repeatable stream
|  Configures how Mule processes streams. The default is to use repeatable streams.  
**Redelivery Policy** |  Redelivery Policy |  Defines a policy for processing the redelivery of the same message.  
#### Output
Attributes Type |  AS2 Mdn Attributes  
---|---  
#### For Configurations
  * MDN Listener Config


### Non repudiation listener
`<as2-mule4:non-repudiation-listener>`
Receives a signed copy of a receipt or a message for persistent non-repudiation storage.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Display Name** |  The name of this configuration. Connectors reference the configuration with this name.  
The MIME type of the payload passed to this flow.  
The encoding of the payload passed to this flow.  
**Redelivery Policy** |  Redelivery Policy |  Defines a policy for processing the redelivery of the same message.  
**Streaming Strategy** | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * Non repeatable stream

|  Configures how Mule processes streams. The default is to use repeatable streams.  
**Primary Node Only** |  Whether to execute this source on only the primary node when running in a cluster.  
#### Output
Attributes Type |  AS2 Listener Attributes  
---|---  
Attributes Type |  AS2 Mdn Attributes  
### For Configurations
None.
## Operations
  * Send With Async Mdn
  * Send With Sync Mdn


### Send With Async Mdn
`<as2-mule4:send-with-async-mdn>`
Performs the send async request using the configuration, client, and AS2 requester parameters, and completes the callback accordingly.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
**General - Custom Message ID** |  Enables the specification of a custom AS2 Message ID.  
**Output Mime Type** |  The MIME type of the payload that this operation outputs.  
**Output Encoding** |  The encoding of the payload that this operation outputs.  
**Streaming Strategy** | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

|  Configures how Mule processes streams. The default is to use repeatable streams.  
**AS2 MIME Type** |  The content type of the Document being sent via AS2 (for example, `application/EDI-X12`). There are no restrictions on the content-type that are supported. |  `#[payload.^mimeType]`  
**Content Stream** |  The content InputStream to be sent.  
**Content Description** |  Content MIME part content description  
Filename of the content stream. If not set, the content is transferred without a filename.  
**Request Receipt** |  Enumeration, one of:
  * UNSIGNED
  * SIGNED_OPTIONAL
  * SIGNED_REQUIRED

|  How the connector behaves based on the received receipts:
  * NONE: No receipt is expected.
  * SIGNED_OPTIONAL: Receipt can be signed or unsigned.
  * SIGNED_REQUIRED: Expects a signed receipt. The application fails if the receipt is unsigned.
  * UNSIGNED: Expects an unsigned receipt.

  
**Require Processed** |  Requires a processed response in the MDN to continue the flow. An error occurs if the response is unprocessed.  
**Connection Timeout** |  Override for the timeout for establishing connections to the remote service as milliseconds. The default of 0 means this value is not used to override the configuration.  
**Non repudiation flow ref** |  Name of the configured flow that contains the **Non repudiation listener** source.  
**Target Variable** |  Name of the variable that stores the operation’s output.  
**Target Value** |  Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field.  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  Configures a reconnection strategy to use when a connector operation fails to connect to an external server.  
**Custom headers** |  Enables you to add custom keys to include in outbound AS2 messages. For each key to include, enter values for these name-value pairs:
  * Name Name of the key to send to outbound AS2 messages, formatted as `Name:key-name`
  * Value Content of the key to send to outbound AS2 messages, formatted as `Value:key-value`

  
**Receipt Delivery URL** |  The asynchronous MDN delivery address to which the MDN is returned. This should be the fully formed URL to the **As 2 mdn listener** source, for example, `https://example.com/mdn`. If a flow uses the **Send With Async MDN** operation, then either this field or the **Receipt Delivery URL** field associated with that operation is required. If both fields have values, the value for the operation overrides the value for the global configuration.  
#### Output
Attributes Type |  AS2 Send Attributes  
---|---  
### For Configurations
  * 

#### Throws
  * AS2-MULE4:CONFIGURATION
  * AS2-MULE4:UNAUTHORIZED
  * AS2-MULE4:CONNECTIVITY
  * AS2-MULE4:RETRY_EXHAUSTED


### Send With Sync Mdn
`<as2-mule4:send-with-sync-mdn>`
Performs the send sync request using the configuration, client, and AS2 requester parameters, and completes the callback accordingly.
#### Parameters
Name | Type | Description | Default Value | Required  
---|---|---|---|---  
**Configuration** |  The name of the configuration to use.  
**General - Custom Message ID** |  Enables the specification of a custom AS2 Message ID.  
**Output Mime Type** |  The MIME type of the payload that this operation outputs.  
**Output Encoding** |  The encoding of the payload that this operation outputs.  
**Streaming Strategy** | 
  * Repeatable In Memory Stream
  * Repeatable File Store Stream
  * non-repeatable-stream

|  Configures how Mule processes streams. The default is to use repeatable streams.  
**AS2 MIME Type** |  The content type of the Document being sent via AS2 (for example, application/EDI-X12). There are no restrictions on the content-type that are supported. |  `#[payload.^mimeType]`  
**Content Stream** |  The content InputStream to be sent.  
**Content Description** |  Content MIME part content description  
Filename of the content stream. If not set, the content is transferred without a filename.  
**Request Receipt** |  Enumeration, one of:
  * UNSIGNED
  * SIGNED_OPTIONAL
  * SIGNED_REQUIRED

|  How the connector behaves based on the received receipts:
  * NONE: No receipt is expected.
  * SIGNED_OPTIONAL: Receipt can be signed or unsigned.
  * SIGNED_REQUIRED: Expects a signed receipt. The application fails if the receipt is unsigned.
  * UNSIGNED: Expects an unsigned receipt.

  
**Require Processed** |  Requires a processed response in the MDN to continue the flow. An error occurs if the response is unprocessed.  
**Require Processed** |  Require Processed response in the MDN to continue the flow (otherwise there is an error)  
**Connection Timeout** |  An override for the timeout for establishing connections to the remote service as milliseconds. The default of 0 means this value is not used to override the configuration.  
**Non repudiation flow ref** |  The name of the configured flow that contains the **Non repudiation listener** source.  
**Target Variable** |  Name of the variable that stores the operation’s output.  
**Target Value** |  Expression that evaluates the operation’s output. The outcome of the expression is stored in the **Target Variable** field.  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  Configures a reconnection strategy to use when a connector operation fails to connect to an external server.  
**Custom headers** |  Enables you to add custom keys to include in outbound AS2 messages. For each key to include, enter values for these name-value pairs:
  * Name Name of the key to send to outbound AS2 messages, formatted as `Name:key-name`
  * Value Content of the key to send to outbound AS2 messages, formatted as `Value:key-value`

  
#### Output
Attributes Type |  AS2 Send Attributes  
---|---  
### For Configurations
  * 

#### Throws
  * AS2-MULE4:CONFIGURATION
  * AS2-MULE4:MIME_PARSE
  * AS2-MULE4:UNAUTHORIZED
  * AS2-MULE4:CONNECTIVITY
  * AS2-MULE4:SIGNATURE_VERIFY
  * AS2-MULE4:RETRY_EXHAUSTED
|  Configures a reconnection strategy to use when a connector operation fails to connect to an external server.  
**Custom headers** |  Enables you to add custom keys to include in outbound AS2 messages. For each key to include, enter values for these name-value pairs:
  * Name Name of the key to send to outbound AS2 messages, formatted as `Name:key-name`
  * Value Content of the key to send to outbound AS2 messages, formatted as `Value:key-value`

  
#### Output
Attributes Type |  AS2 Send Attributes  
---|---  
### For Configurations
  * 

#### Throws
  * AS2-MULE4:CONFIGURATION
  * AS2-MULE4:MIME_PARSE
  * AS2-MULE4:UNAUTHORIZED
  * AS2-MULE4:CONNECTIVITY
  * AS2-MULE4:SIGNATURE_VERIFY
  * AS2-MULE4:RETRY_EXHAUSTED


## Types
### AS2 Basic Authentication
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Username to authenticate.  
Password of user to authenticate.  
### AS2 Listener Attributes
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**As2 Message Id** |  AS2 unique message ID from receiver to sender.  
Received filename.  
MIME type, for example, `application/xml`.  
AS2 Receiver name.  
AS2 HTTP headers that elaborate the message format.  
**Mdn Delivery Status** |  Enumeration, one of:
  * SUCCESS
  * FAILURE

|  AS2 message validation status  
AS2 Sender name  
### AS2 Mdn Attributes
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**As2 Message Id** |  AS2 unique message ID from receiver to sender.  
**Disposition Content** |  AS2 processed MDN report as headers.  
AS2 Receiver name  
AS2 HTTP headers that elaborate the message format.  
Enumeration, one of:
  * SHA224
  * SHA256
  * SHA384
  * SHA512
  * UNSIGNED

|  AS2 message integrity check algorithm used  
AS2 message integrity check hashcode  
**Mdn Processed** |  AS2 message validation status  
**Original AS2 Message Id** |  AS2 Message ID received  
**Report Text** |  MDN report text  
AS2 Sender name  
### AS2 Send Attributes
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**As2 Mdn Attributes** |  AS2 Mdn Attributes |  AS2 returned MDN attribute group  
**As2 Message Id** |  AS2 unique message ID from receiver to sender  
AS2 receiver name  
AS2 HTTP headers that elaborate the message format  
AS2 message integrity check hashcode  
**Msg MIC Alg** |  AS2 message integrity check algorithm used  
AS2 sender name  
### Crl File
Specifies the location of the certification revocation list (CRL) file.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Path to the CRL file.  
### Custom Ocsp Responder
Configures a custom OCSP responder for certification revocation checks.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
URL of the OCSP responder.  
**Cert Alias** |  Alias of the signing certificate for the OCSP response. If specified, the alias must be in the truststore.  
### Expiration Policy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Idle Time** |  Configures the maximum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration.  
Enumeration, one of:
  * NANOSECONDS
  * MICROSECONDS
  * MILLISECONDS
  * SECONDS
  * MINUTES
  * HOURS

|  A time unit that qualifies the value of the **Max Idle Time** field.  
### Failure Status Code Validator
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Comma-separated list of status codes that cause errors to be thrown.  
### KeyStore
Configures the keystore for TLS.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Path to the keystore. Mule resolves the path relative to the current classpath and file system.  
Type of keystore.  
Alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file.  
**Key Password** |  Password used to protect the private key.  
Password used to protect the keystore.  
Encryption algorithm that the keystore uses.  
### NTLM Proxy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Ntlm Domain** |  Domain of the NTLM proxy server.  
Hostname or IP address of the NTLM proxy server.  
Port of the NTLM proxy server.  
Username to authenticate against the proxy server.  
Password to authenticate against the proxy server.  
**Non Proxy Hosts** |  NTLM hosts that the connector can access without using a proxy server.  
### Proxy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Hostname or IP address of the proxy server.  
Port of the proxy server.  
Username to authenticate against the proxy server.  
Password to authenticate against the proxy server.  
**Non Proxy Hosts** |  Hosts that the connector can access without using a proxy server.  
### Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many reconnection attempts the connector source or operation can make.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
How often to attempt to reconnect, in milliseconds.  
**Reconnection Attempts** |  How many reconnection attempts to make.  
If false, the reconnection strategy runs in a separate, non-blocking thread.  
### Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to reconnect at a specified frequency for as long as the Mule app runs.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Frequency (ms)** |  How often to reconnect, in milliseconds  
If false, the reconnection strategy runs in a separate, non-blocking thread.  
### Reconnection
Configures a reconnection strategy for an operation.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Fails Deployment** |  What to do if, when an app is deployed, a connectivity test does not pass after exhausting the associated reconnection strategy:
  * true: Allow the deployment to fail.
  * false: Ignore the results of the connectivity test.

  
**Reconnection Strategy** | 
  *   * Reconnect Forever

|  The reconnection strategy to use.  
### Redelivery Policy
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Max Redelivery Count** |  The maximum number of times a message can be redelivered and processed unsuccessfully before triggering a process-failed message.  
**Use Secure Hash** |  Whether to use a secure hash algorithm to identify a redelivered message.  
**Message Digest Algorithm** |  The secure hashing algorithm to use. If not set, the default is SHA-256.  
**Id Expression** |  Defines one or more expressions to use to determine when a message has been redelivered. This property can be set only if useSecureHash is false.  
**Object Store** |  Object Store |  The object store where the redelivery counter for each message is stored.  
### Repeatable File Store Stream
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**In Memory Size** |  Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance:
  * Configure a larger buffer size to avoid the number of times Mule needs to write the buffer on disk. This increases performance, but it also limits the number of concurrent requests your application can process, because it requires additional memory.
  * Configure a smaller buffer size to decrease memory load at the expense of response time.
**Buffer Unit** |  Enumeration, one of: |  The unit in which the value of **In Memory Size** is expressed  
### Repeatable In Memory Stream
Configures the in-memory streaming strategy by which the request fails if the data exceeds the value of the **MAX Buffer Size** field. Always run performance tests to find the optimal buffer size for your specific use case.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Initial Buffer Size** |  Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by **Buffer Size Increment** , with an upper limit of the **In Memory Size** value.  
**Buffer Size Increment** |  This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full.  
**Max Buffer Size** |  Maximum size of the buffer. If the buffer size exceeds this value, Mule raises a `STREAM_MAXIMUM_SIZE_EXCEEDED` error. A value of less than or equal to `0` means no limit.  
**Buffer Unit** |  Enumeration, one of: |  Unit for the **Initial Buffer Size** , **Buffer Size Increment** , and **Max Buffer Size** fields.  
### Standard Revocation Check
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Only End Entities** |  Only verify the last element of the certificate chain.  
**Prefer Crls** |  Try CRL instead of OCSP first.  
**No Failback** |  Do not use the secondary checking method, which is the method not specified in the **Prefer Crls** field.  
Avoid verification failure when the revocation server cannot be reached or is busy.  
### Success Status Code Validator
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Comma-separated list of status codes that indicate success.  
Configures TLS to provide secure communications for the Mule app.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
**Enabled Protocols** |  Comma-separated list of protocols enabled for this context.  
**Enabled Cipher Suites** |  Comma-separated list of cipher suites enabled for this context.  
**Trust Store** |  Configures the TLS truststore.  
Configures the TLS keystore.  
**Revocation Check** | 
  * Custom Ocsp Responder
  * Standard Revocation Check

|  Configures a revocation checking mechanism.  
### Truststore
Configures the truststore for TLS.
Field | Type | Description | Default Value | Required  
---|---|---|---|---  
Path to the truststore. Mule resolves the path relative to the current classpath and file system.  
Password used to protect the truststore.  
Type of truststore.  
Encryption algorithm used by the truststore.  
If `true`, Mule stops performing certificate validations. Setting this field to `true` can make connections vulnerable to attacks.  
## See Also
  * Introduction to Anypoint Connectors
  * AS2 Connector in Anypoint Exchange
  * MuleSoft Help Center