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
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.
More Spring Security questions
- What HTTP response code does Spring Security typically return for unauthorized requests?
- How does Spring Security handle a request identified as a potential CSRF attack?
- Why is separating authentication from authorization important in a real system?
- What does Spring Security's Authentication Filter primarily do?
- In the context of BCrypt, what does increasing the work factor achieve?
- Which of the following filters in the Spring Security Filter Chain is primarily responsible for ensuring that requests…