Dot Net Code Security Question:
Tell me the differences between declarative and imperative security?
Answer:
Declarative and imperative are the different syntax schemes used to implement security declarations in .NET Framework. In declarative security, attribute syntax is used. The security constraints are stored in the assembly at compile time. The disadvantage of declarative security is that there are tools which extract security requirements from the metadata in the assembly.
In imperative implementation, the attribute syntax is not used. It is implemented by writing the regular code to provide restrictions
In imperative implementation, the attribute syntax is not used. It is implemented by writing the regular code to provide restrictions
Previous Question | Next Question |
What is declarative and imperative security? | Explain code access security? |