Explain declarative and imperative security?

 Posted by Tripati_tutu on 10/9/2010 | Category: .NET Framework Interview questions | Views: 6162 | Points: 40

Security checks can be applied in two ways that is 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).

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response