Skip to content
Sharp

Spring Security · interview question

In the context of Spring Security, how does the framework ensure that a request has not been tampered with when using JWT?

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

Correct answer

A. By verifying the JWT signature

Why

JWTs include a signature which is used to verify the integrity of the token. Spring Security checks this signature to ensure that the token has not been tampered with, maintaining trust in the identity and claims presented by the JWT.

Test yourself on Spring Security

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

Start free test
All Spring Security questions →