Answer:
The Principal object represents authenticated users. It contains information about user’s identity and role. You have PrincipalPermission object in .Framework that specifies user and its role. It has Demand method that checks the current user or Principal against the name and role specified in the PrincipalPermission.
Previous Question | Next Question |
Do you know role-based and code based security? | Explain code security types? |