Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: JWT Signatures

Front

How does Spring Security handle JWT processing?

Through a filter that intercepts requests. Spring Security uses a filter chain to process incoming requests, where a…

View Card →
Flashcard Study

Java: JWT Signatures

Front

How would you explain a critical risk when using long-lived JWTs without refresh tokens in an interview?

Increased risk of token theft and misuse. Frame the concept in practical terms so you can explain it…

View Card →
Flashcard Study

Java: JWT Signatures

Front

How does the Signature part of a JWT ensure data integrity?

It uses cryptographic algorithms to verify the token's authenticity. The Signature in a JWT combines the encoded header…

View Card →
Flashcard Study

Java: JWT Signatures

Front

Why are JWT Payloads not secure by themselves?

They are Base64 encoded, not encrypted. Frame the concept in practical terms so you can explain it during…

View Card →
Flashcard Study

Java: JWT Signatures

Front

What are the three components of a JWT?

Header, Payload, Signature. Frame the concept in practical terms so you can explain it during interview discussion. A…

View Card →
Flashcard Study

Java: JWT Signatures

Front

Importance of Short-lived JWT Expiration Times?

Short expiration limits the window for token misuse. Setting a short expiration time for JWTs minimizes the impact…

View Card →
Flashcard Study

Java: JWT Signatures

Front

Why Choose BCrypt for Password Hashing?

BCrypt is designed to be computationally expensive to slow down attackers. BCrypt is an adaptive hash function that…

View Card →
Flashcard Study

Java: JWT Signatures

Front

Mitigating Stored XSS in Java Applications?

Encode output to prevent execution of malicious scripts. Stored XSS occurs when user input is stored and later…

View Card →
Flashcard Study

Java: JWT Signatures

Front

Preventing SQL Injections in Java?

Use prepared statements to safely execute SQL queries. Prepared statements in Java help prevent SQL injection by separating…

View Card →
Flashcard Study

Java: JWT Signatures

Front

The Purpose of CSRF Tokens?

CSRF tokens protect against cross-site request forgery attacks. CSRF tokens are unique and secret tokens that are included…

View Card →