nerdexam
GIAC

GSSP-NET · Question #451

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…

The correct answer is B. GenericIdentity D. GenericPrincipal. See the full explanation below for the reasoning.

Question

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.

Options

  • AWindowsPrincipal
  • BGenericIdentity
  • CWindowsIdentity
  • DGenericPrincipal

How the community answered

(28 responses)
  • A
    14% (4)
  • B
    79% (22)
  • C
    7% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice