title: How to use encrypted password in WSS4J Spring Security
body: <p>I am using Spring WS Security through WSS4JSecurityInterceptor. Howvever, while validating signature I need to read keystore passwords.</p>
  
  <p>The keystore passwords will be encrypted. Can you please let me know how to decrypt it before validating the signature?</p>
  
  <p>My configuration is as below:</p>
  
  <pre><code>&lt;bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor"&gt;
      &lt;property name="validationActions" value="Signature"/&gt;
      &lt;property name="validationSignatureCrypto"&gt;
          &lt;bean class="org.springframework.ws.soap.security.wss4j.support.CryptoFactoryBean"&gt;
              &lt;property name="keyStorePassword" value="123456"/&gt;
              &lt;property name="keyStoreLocation" value="classpath:/keystore.jks"/&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Thanks</p>