Application Development Using Visual Basic® and .NET
by Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Chapter 16. Security
Security prevents a user or a piece of code from doing things it should not be allowed to do. Traditionally, security has focused on restricting operations based on the identity of the user or the group to which the user belongs. Naturally, this approach to security is supported by .NET, and it is known as user-based security (a closely related concept is known as role-based security, also discussed later in this chapter). .NET also allows you to place restrictions on what a piece of code is permitted to do according to security evidence associated with that code. This new approach to security is known as Code Access Security (also known as evidence-based security). For example, you can prevent certain code from accessing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access