Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Nagaraju Kshathriya
Nagaraju Kshathriya

Posted on

     

How to access Secure Properties in DataWeave 2.0

In this little blog, I will walk you thru how to access secure properties in dataweave 2.0.

I assume you havecreated andencrypted your properties. Once you configure the properties, you can read secure properties within mule component such as database, file, etc,

Accessing in Mule Components

For example, to read the secure properties in set payload - you can write xml like below,

<flow name="sample">    <set-payload value="${secure::encrypted.key}"/></flow>
Enter fullscreen modeExit fullscreen mode

Accessing in DataWeave

To access secure properties in dataweave script, you need to usep() as shown below:

%dw 2.0output application/json---{    password: p('secure::encrypted.key')}
Enter fullscreen modeExit fullscreen mode

That's simple. I hope you learned something from this little blog. For more MuleSoft article, news and support - visitVanchiv.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I'm a seasoned Integration Engineer and a Tech Blogger.
  • Location
    Bangalore
  • Work
    Integration Engineer at Shell
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp