title: Static secret as byte[], Key or String?
body: <p>I have started to work with <a href="https://github.com/jwtk/jjwt" rel="noreferrer">JJWT</a> to handle JWT on my server application. </p>
  
  <p>My JWT secret will be stored at <code>resources</code> folder and I will load the secret with <code>Properties</code> class.</p>
  
  <p>The <a href="https://github.com/jwtk/jjwt" rel="noreferrer">JJWT</a> provides three methods to sign the JWT, one uses <code>byte[]</code>, other uses <code>String</code> and the other uses <code>Key</code>:</p>
  
  <pre><code>JwtBuilder signWith(SignatureAlgorithm var1, byte[] var2);
  
  JwtBuilder signWith(SignatureAlgorithm var1, String var2);
  
  JwtBuilder signWith(SignatureAlgorithm var1, Key var2);
  </code></pre>
  
  <p><strong>The question:</strong> Regarding security, charset and other things, there are any recommendations of which one I should use?</p>
  
  <p>For while, I stand with <code>String</code>, since <code>Properties</code> return a <code>String</code>.</p>