Summer Special Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: vce65

Allen works as a Software Developer for ABC Research Center.

Allen works as a Software Developer for ABC Research Center. This research center has its subsidiaries in different cities. Allen wants to retrieve a Soil Test Report for the Geological Survey Department. He wants the test report to be available to all the members of the department over the Internet. He creates an XML Web service named SampleReport. SampleReport contains a Web method named SoilTestDetails that requires additional security. Allen decides to use generic rolebased security to secure the SoilTestDetails method from unauthorized users.

Allen writes code to ensure that once a user is authenticated, a user identity named Generic is created. The Generic user identity has a group membership named GeoSurvey to allow the authenticated users access to the SoilTestDetails Web method. Which of the following code segments should Allen use to accomplish the task?

A.

Dim GenIdentity As GenericIdentity = New GenericIdentity("Generic", "Custom")

Dim GesRoles() As String= {"GeoSurvey"}

Dim GeoPrincipal As GenericPrincipal = New GenericPrincipal(GenIdentity, GeoRoles)

Thread.CurrentPrincipal = GeoPrincipal

B.

Dim GeoIdentity As IIdentity = New GenericIdentity("Generic", "GeoSurvey")

Dim GeoPrincipal As IPrincipal = New WindowsPrincipal((WindowsIdentity) GeoIdentity)

Thread.CurrentPrincipal = GeoPrincipal

C.

Dim GeoIdentity As IIdentity = New GenericIdentity("Generic", "Custom")

Dim WinGeoIdentity As WindowsIdentity = (WindowsIdentity) GeoIdentity

Dim GeoRoles() As String = {"GeoSurvey"}

Dim GenGeoPrincipal As GenericPrincipal = New GenericPrincipal(WinGeoIdentity, GeoRoles)

WindowsIdentity.Impersonate(WinGeoIdentity.Token)

D.

Dim MyGenericIdentity As System.Security.Principal.IIdentity = New GenericIdentity("Generic",

"Custom")

Dim GeoRoles() As String = {"GeoSurvey"}

GenericPrincipal GenGeoPrincipal = new GenericPrincipal(MyGenericIdentity, GeoRoles);

MyGenericIdentity = WindowsIdentity.GetCurrent();

GIAC GSSP-.NET Summary

  • Vendor: GIAC
  • Product: GSSP-.NET
  • Update on: Jul 25, 2025
  • Questions: 491
Price: $52.5  $149.99
Buy Now GSSP-.NET PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method