Dot Net Code Security Question: Download Questions PDF
What is declarative and imperative security?
![.Net code security Interview Answer .Net code security Interview Question](https://globalguideline.com/public/images/interview/34.png)
Answer:
Security checks can be applied imperatively or declaratively. Declarative security is applied by associating attribute declarations that specify a security action with classes or methods. Imperative security is applied by calling the appropriate methods of a Permission object that represents the Principal (for role-based security) or system resource (for code access security).
Download .Net code security Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain code security types? | Tell me the differences between declarative and imperative security? |