Question:You are developing an application that will use custom authentication and role-based security. You need to write a code segment to make the runtime assign an unauthenticated principal object to each running thread. Which code segment should you use? 

A Dim objDomain As AppDomain = AppDomain.CurrentDomain objDomain.SetAppDomainPolicy( _ PolicyLevel.CreateAppDomainLevel()) 

B Dim objDomain As AppDomain = AppDomain.CurrentDomain objDomain.SetPrincipalPolicy( _ PrincipalPolicy.WindowsPrincipal) 

C Dim objDomain As AppDomain = AppDomain.CurrentDomain objDomain.SetPrincipalPolicy( _ PrincipalPolicy.UnauthenticatedPrincipal) 

D Dim objDomain As AppDomain = AppDomain.CurrentDomain objDomain.SetThreadPrincipal(New WindowsPrincipal(Nothing)) 

+ Answer
+ Report
Total Preview: 1013

Copyright © 2024. Powered by Intellect Software Ltd