任何人都可以帮助我在Mule 3.4中使用加密命名空间和模式位置.
我有这个配置XML
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd">
<encryption:config name="Encryption_PGP" defaultEncrypter="PGP_ENCRYPTER" doc:name="Encryption_PGP">
<encryption:pgp-encrypter-config publicKeyRingFileName="./mule.gpg" secretKeyRingFileName="./secring.gpg" secretAliasId="3879972755627455806" secretPassphrase="mule1234" principal="test1"/>
</encryption:config>
<flow name="sdsd">
<encryption:encrypt config-ref="Encryption_PGP" doc:name="Encryption" using="PGP_ENCRYPTER" input-ref="#[message.payload]">
<encryption:pgp-encrypter principal="fernando.martinez <fernando.martinez@mulesoft.com>" />
</encryption:encrypt>
</flow>
</mule>
Run Code Online (Sandbox Code Playgroud)
但是它给了我这个错误:元素"encryption:config"的前缀"encryption"没有绑定.
要使用加密命名空间中的消息处理器,您需要安装Anypoint Enterprise Security模块
您可以在此处找到有关如何使用它的更多信息
认为这仅仅是一个EE的功能,所以如果你没有一个EE许可你应该使用PGP的安全性,而不是