Java: Spring Security Filter Chain
Why does the Spring Security Filter Chain matter in this design?
It processes HTTP requests through a series of security filters. The Spring Security Filter Chain acts like a…
View Card →Quick study sessions to strengthen memory and retain key concepts.
Why does the Spring Security Filter Chain matter in this design?
It processes HTTP requests through a series of security filters. The Spring Security Filter Chain acts like a…
View Card →Where should order-ownership checks live?
Near the business action, where order facts are actually available. The filter chain authenticates requests early, but resource-specific…
View Card →Why are role claims often not enough?
Because ownership, workflow state, and tenant rules can matter beyond a coarse role. A token claim like `role=CUSTOMER`…
View Card →Authentication vs authorization?
Authentication proves identity; authorization decides what that identity may do. A valid login or token only answers who…
View Card →How can interface-based proxies affect design?
Require designing classes for interface implementation. Using interface-based proxies encourages designing classes to implement interfaces, which enhances flexibility…
View Card →How does Spring decide to rollback transactions?
Spring rolls back on runtime exceptions by default. In Spring, a transaction is automatically rolled back if a…
View Card →Why is @Transactional not working inside the same class?
The proxy is bypassed in self-invocation. Frame the concept in practical terms so you can explain it during…
View Card →How would you explain a potential issue with CGLIB-based proxies in an interview?
CGLIB proxies require non-final classes and methods. CGLIB proxies subclass the target class to add proxy functionality, which…
View Card →What are the trade-offs of using constructor injection?
It enforces immutability and ensures dependencies are set. Constructor injection in Spring is beneficial as it promotes immutability…
View Card →Why does Bean scopes in Spring matter in this design?
Bean scopes define the lifecycle and visibility of beans. In Spring, bean scopes determine the lifecycle and how…
View Card →