title: Spring Integration - is it possible to give encrypted password in imap-idle-channel-adapter?
body: <p>I am using the following configuration to read emails using spring integration and imap.</p>
  
  <pre><code>&lt;mail:imap-idle-channel-adapter id="imapAdapter"
                                store-uri="imaps://username:password@mydomain:993/inbox"                                    
                                channel="recieveEmailChannel"
                                should-delete-messages="false"
                                auto-startup="true"
                                java-mail-properties="javaMailProperties" /&gt;
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>Here the username and password are clear text , but for security reason I need to give either encrypted one or store the username and password in the properties file. Is there any option available do that?</p>
  
  <p>Thanks.</p>