The NGWS runtime offers code access security and role-based security to help address security concerns about mobile code and to provide support that enables components to make decisions about what users are allowed to do. Both of these security mechanisms were designed to have a simple, consistent model so that developers familiar with code access security could easily use role-based security, and vice-versa; Also, both code access security and role-based security are implemented using a common infrastructure supplied by the NGWS runtime.
Because they use the same model and infrastructure, code access security and role-based security have in common several underlying concepts. You should make sure that you are familiar with the following concepts before you read the documentation for NGWS code access security and role-based security: