title: Referencing JBoss vault from .properties file
body: <p>Using JBoss EAP 7, I have a .properties file included in the classpath successfully.</p>
  
  <p>I have also set up a vault, and inserted one value via the command line. I checked that the value exists.</p>
  
  <p>I'm trying to use the vault entry in my application. So for example, in the properties file, if I put something like:</p>
  
  <pre><code>token.secret=mysecret
  </code></pre>
  
  <p>and then run one of my POST requests, it returns a key. I can run my <code>JUnit</code> test then and the assertion comes back true, that the encoding of the key did use the value "mysecret".</p>
  
  <p>So if I put in "mysecret" into my vault:</p>
  
  <pre><code>vault.bat --keystore ..\vault\vault.keystore --keystore-password &lt;password&gt; --alias vault --vault-block mySecret --attribute myAtt --sec-attr mysecret --enc-dir ../vault --iteration 97 --salt abcdefgh
  </code></pre>
  
  <p>the command line gives back this to use:</p>
  
  <pre><code>${VAULT::mySecret::myAtt::1}
  </code></pre>
  
  <p>And then if I use this in my .properties file:</p>
  
  <pre><code>token.secret=${VAULT::mySecret::myAtt::1}
  </code></pre>
  
  <p>And make the same POST request, and run the JUnit test, it's saying the key returned wasn't generated from "mysecret".</p>
  
  <p>How can I use the value in the vault within the properties file to get my <code>JUnit</code> test to pass? </p>