---
schema_version: "1"
id: 9cbc02d0ee07542c68495aaa3aae3ae83aafd05d87e220c04aacd8859daf1605
title: Spring Module 2.1 Reference
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/spring-module/2.1/spring-module-reference.md
canonical_url: https://docs.mulesoft.com/spring-module/2.1/spring-module-reference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 272e873cbba00d6fffb766cc71b25a15cf6596fe19abc0112a39955619c25936
description: MuleSoft Documentation Site
release: "2.1"
latest: false
---
---
product: Spring Module
version: 2.1
---

# Spring Module 2.1 Reference

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Spring Module enables Mule apps to use the Spring framework.

## Configurations

---

### Config

Spring configuration that enables you to define a set of spring XML files and create an application
context with objects to use in the Mule artifact.

#### Parameters

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Name for this configuration. Connectors reference the configuration with this name.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Files</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The Spring beans file.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The identifier of this element used to reference it in other components.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr></tbody></table>

## Operations

### Authorization Filter

`<spring:authorization-filter>`

Authorizes users against a required set of authorities.

#### Parameters

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p><strong>Required Authorities</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>The authorities that grants the user further access to the flow, for example, <code>ROLE_ADMIN</code>,<code>ROLE_USER</code>.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Error Mappings</strong></p></td><td><div><div><p>Array of <a href="#ErrorMapping">Error Mapping</a></p></div></div></td><td><div><div><p>Set of error mappings.</p></div></div></td><td><div></div></td><td><div></div></td></tr></tbody></table>

#### Throws

- MULE:NOT\_PERMITTED

- MULE:SERVER\_SECURITY

## Types

### Error Mapping

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p>Source</p></td><td><div><div><p>Enumeration, one of:</p></div><div><ul><li><p>ANY</p></li><li><p>REDELIVERY_EXHAUSTED</p></li><li><p>TRANSFORMATION</p></li><li><p>EXPRESSION</p></li><li><p>SECURITY</p></li><li><p>CLIENT_SECURITY</p></li><li><p>SERVER_SECURITY</p></li><li><p>ROUTING</p></li><li><p>CONNECTIVITY</p></li><li><p>RETRY_EXHAUSTED</p></li><li><p>TIMEOUT</p></li></ul></div></div></td><td><p>Source of the error.</p></td><td></td><td></td></tr><tr><td><p>Target</p></td><td><div><div><p>String</p></div></div></td><td><p>Target of the error.</p></td><td></td><td><p>x</p></td></tr></tbody></table>

### Delegate Security Provider

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Field</th><th>Type</th><th>Description</th><th>Default Value</th><th>Required</th></tr></thead><tbody><tr><td><p><strong>Name</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Provider name to reference.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Delegate Ref</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Spring security manager.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr><tr><td><p><strong>Authentication Provider Ref</strong></p></td><td><div><div><p>String</p></div></div></td><td><div><div><p>Authentication provider.</p></div></div></td><td><div></div></td><td><div><div><p>x</p></div></div></td></tr></tbody></table>

## See Also

- [Salesforce Help](https://help.salesforce.com)
