Security architecture patterns can be classified into different categories based on their scope, level, or domain. For instance, scope-based security architecture patterns define the boundaries and relationships of the system components involved in security; for example, the Layered Security pattern divides the system into layers providing varying levels of protection and access control, while the Security Gateway pattern isolates the system from external threats. Level-based security architecture patterns, on the other hand, specify the security mechanisms and policies that are applied at different levels of abstraction or granularity in the system; for example, the Secure Data Transfer pattern encrypts and authenticates data transmitted between components, and the Role-Based Access Control pattern assigns roles and permissions to users based on their responsibilities and privileges. Finally, domain-based security architecture patterns address specific security domains or topics relevant for the system; for example, the Single Sign-On pattern enables users to authenticate once and access multiple services without re-authenticating, and the Audit Trail pattern records and stores actions and events that occur in the system.