1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.module.pgp.config; |
12 | |
|
13 | |
import org.mule.api.config.MuleProperties; |
14 | |
import org.mule.config.spring.parsers.generic.ChildDefinitionParser; |
15 | |
import org.mule.config.spring.parsers.generic.NamedDefinitionParser; |
16 | |
import org.mule.config.spring.parsers.generic.ParentDefinitionParser; |
17 | |
import org.mule.module.pgp.KeyBasedEncryptionStrategy; |
18 | |
import org.mule.module.pgp.PGPSecurityProvider; |
19 | |
import org.mule.module.pgp.filters.PGPSecurityFilter; |
20 | |
|
21 | |
import org.springframework.beans.factory.xml.NamespaceHandlerSupport; |
22 | |
|
23 | 4 | public class PgpNamespaceHandler extends NamespaceHandlerSupport |
24 | |
{ |
25 | |
public void init() |
26 | |
{ |
27 | 4 | registerBeanDefinitionParser("security-manager", new NamedDefinitionParser(MuleProperties.OBJECT_SECURITY_MANAGER)); |
28 | 4 | registerBeanDefinitionParser("security-provider", new ChildDefinitionParser("provider", PGPSecurityProvider.class)); |
29 | 4 | registerBeanDefinitionParser("security-filters", new ParentDefinitionParser()); |
30 | 4 | registerBeanDefinitionParser("security-filter", new ChildDefinitionParser("securityFilter", PGPSecurityFilter.class)); |
31 | 4 | registerBeanDefinitionParser("keybased-encryption-strategy", new ChildDefinitionParser("encryptionStrategy", KeyBasedEncryptionStrategy.class)); |
32 | 4 | } |
33 | |
|
34 | |
} |