title: What is the difference between JSON Web Signature (JWS) and JSON Web Token (JWT)?
body: <p>I've been coding a RESTful service in Java. This is what I've understood till now (correct me if i'm wrong):</p>
  
  <p>Token authorization is done using <em>JSON Web Tokens (JWT)</em> which have three parts: the header, the payload, and the secret (shared between the client and the server). </p>
  
  <p>I understood this concept and stumbled over <em>JSON Web Signature (JWS)</em> while reading about JWT.</p>
  
  <p>JWS also is an encoded entity similar to JWT having a header, payload, and a shared secret.</p>
  
  <p><strong>Question:</strong> What is the difference between the two concepts, namely JWT and JWS? And if they are alike technically, then what's the difference in their <em>implementation</em>?</p>
  
  <p>This is the first time I'm working with token based auth, so it's possible I've misunderstood the concept altogether.</p>
  
  <p>P.S. I learned about JWS while browsing through the examples on <a href="http://connect2id.com/products/nimbus-jose-jwt" rel="noreferrer">this website</a>.</p>