Which of the following classes will Sam use to accomplish the task?

Posted by: Pdfprep Category: GSSP-.NET Tags: , ,

Sam works as a Software Developer for SamTech Inc. He creates an XML Web service, named

WebService1, using Visual Studio .NET. WebService1 uses the .NET Framework security class libraries to implement security. It implements role-based authorization based on a SQL Server database containing user names. Sam adds the following statements to the Web service code. using System.Security.Principal; using System.Threading;

Sam wants to ensure that only validated users are permitted to access WebService1 by entering their user names and passwords in TextBox controls, named Text1 and Text2. He wants to implement imperative security check on WebService1. He also wants to ensure that users are assigned the Manager role and the Subordinate role by default.

Which of the following classes will Sam use to accomplish the task? Each correct answer represents a part of the solution. Choose two.
A . WindowsPrincipal
B . GenericIdentity
C . WindowsIdentity
D . GenericPrincipal

Answer: B,D

Leave a Reply

Your email address will not be published.