Security

If you create a VB component today, your choices for implementing security are somewhat limited. You can use NTFS to set permissions on the file itself. You can place the component in MTS/COM+ Component Services and turn on role-based security. You can call it over DCOM and use DCOMCNFG to set permissions. You can always just code your own security.

One of the runtime's main benefits is that an entire security infrastructure is built right in. In fact, two major security models are set up in the .NET Framework: code access security and role-based security. These are discussed in more detail in Chapter 12, “Performance and Security.”

Code Access Security (CAS)

This security does not control who can access the code; rather, it controls ...

Get A Programmer's Introduction to Visual Basic® .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.