【问题标题】:How to set a reference in http-conf:proxyAuthorization Conduit (XML)如何在 http-conf:proxyAuthorization Conduit (XML) 中设置引用
【发布时间】:2017-10-23 15:47:27
【问题描述】:

我的 XML 管道中有:

<http-conf:proxyAuthorization>
        <sec:UserName>${proxyUsername}</sec:UserName>
        <sec:Password>#{proxySetter.getPassword()}</sec:Password>
</http-conf:proxyAuthorization>

但我需要设置对 sec:Password 示例的引用。我在此字段中输入的任何内容基本上都用作基本身份验证的字符串文字。我将如何调用一个方法来填充这个 ref?出于安全原因,我无法在任何地方对密码进行硬编码。 谢谢。

【问题讨论】:

    标签: xml apache-camel cxf jbossfuse


    【解决方案1】:

    它是否部署到 JBoss FUSE(基于 Karaf OSGi)容器中?如果是这样,您可以对敏感密码属性使用加密属性占位符,请查看 [1] 以获取更多详细信息。它同时支持spring-dm和蓝图配置

    [1]https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.2.1/html/Security_Guide/FMQSecurityEncryptProperties.html

    弗里曼

    【讨论】:

      猜你喜欢
      • 2012-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多