Demands
Code that performs some privileged action will make a demand for one or more permissions. The demand makes the CLR walk the call stack and for each method the CLR will ensure that the demanded permissions are in the method's assembly's granted permissions. If the permission is not granted then a security exception is thrown. This prevents downloaded code from performing privileged actions. For example, if an assembly is downloaded from an untrusted site the assembly will not have any file IO permissions and so if this assembly attempts to access a file code access security will throw an exception preventing the call.
Read more about this topic: Code Access Security
Famous quotes containing the word demands:
“The ex-Presidential situation has its advantages, but with them are certain drawbacks. The correspondence is large. The meritorious demands on one are large. More independent out than in place, but still something of the bondage of the place that was willingly left. On the whole, however, I find many reasons to be content.”
—Rutherford Birchard Hayes (18221893)
“Jane Addams, founder of Hull House, once asked, How shall we respond to the dreams of youth? It is a dazzling and elegant question, a question that demands an answera range of answers, really, spiraling outward in widening circles.”
—William Ayers, U.S. author. To Teach: The Journey of a Teacher, ch. 7 (1993)
“One is never satisfied with a portrait of persons whom one knows. That is why I have always pitied portraitists. One demands so seldom of others the impossible, but demands just that of the portraitists.”
—Johann Wolfgang Von Goethe (17491832)