How COM Plus Component adopt security

To reduce complexity COM+ used or provides role-based security service that's helps in middle-tier components.There are two types of role-based security. (1)Declaractive (2)Programmatic When we applied and configure security without using an explicit programming interface is known as declartive security settings. On the other hand there are some situation when work load is heavy and secuirty is must and exchange of data accross the network and security
measure should be taken with programming interface and it is known as programmactic secrity.