Mule 中的加密转换器

标签 encryption mule

请任何人都可以帮助我处理 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 &lt;fernando.martinez@mulesoft.com&gt;" />
</encryption:encrypt>
</flow>
</mule>

但它给了我这个错误:元素“加密:配置”的前缀“加密”未绑定(bind)。

最佳答案

使用 中的消息处理器加密 命名空间你需要安装 Anypoint Enterprise Security module

您可以找到更多关于如何使用它的信息here

也就是说,这是一个 EE 唯一的功能,所以如果您没有 EE 许可证,您可能应该使用 PGP security反而

关于Mule 中的加密转换器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18377445/

相关文章:

encryption - WebRTC SRTP解密

c# - 使用 C# 从 Powershell 中解密 SecureString

java - 如何从 java 组件发送不同的有效载荷?

java - 如何通过 HTTPS 使用 REST API?

java - Java对称加密程序中 key 大小无效

Java:是否有任何编码器在数据加密期间不会包含正斜杠?

iOS 硬件加密与自己的实现

java - 使用正则表达式的 Mule splitter 没有返回结果

json - 如何访问json数据mule esb

Mule Inter - 同一实例中的应用程序通信