Skip to content
Sharp

Spring Security · interview question

In a stateless JWT token, what component ensures the token's integrity and prevents tampering?

Multiple choiceHardchapter-17-curatedpremiumspring-securityspring-security-filter-chain
Choose one answer
Answer and explanation

Correct answer

B. Signature

Why

The Signature in a JWT token is created using a secret key and ensures that the token has not been altered. It verifies the authenticity and integrity of the token.

Test yourself on Spring Security

A free test with instant, explained results. No account needed.

Start free test
All Spring Security questions →