Principles, Patterns and Technical Layers of a Secure System