Spring Boot JWT

Published: 2017-12-12 • Updated: 2019-09-08

What is JWT

As per JWT.io

JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.

It is a tokenization format in which we pass our credentials and content in a single format wrapped inside token.

Parts of JWT

  • Header
    • Contains info of Hashing methodology we have used to encode our message
    • Algorithm and Token Type info
  • Payload
    • Data/Message to be transferred
  • Signature
    • Encoded Header and Payload then merge them along with a secret

Spring Integration

To access the full working code sample, click here



Share Post