课程: Advanced Python: Build Hands-On Projects with Design Patterns (2023)
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Implementng the Intercepting Validator - Python教程
课程: Advanced Python: Build Hands-On Projects with Design Patterns (2023)
Implementng the Intercepting Validator
- [Instructor] Are you now more convinced of the importance and necessity of adopting an intercepting validator in your project? When I think about it, the concept is very similar to that of a checkpoint. Learning more details about this pattern will boost your confidence even more. In that positive spirit, let's continue our discussion and go over the pattern's overall structure and behavior. As you can see in the class diagram, an intercepting validator consists of SecureBaseAction, Intercepting Validator, and Validator. The SecureBaseAction class is also a design pattern of its own right. It centralizes security operations that directly interact with end users. These operations include authentication, authorization, input validation, and logging. The SecureBaseAction pattern takes advantage of the command pattern to invoke the security methods. The Intercepting Validator class is responsible for creating specialized…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。